1833784 Members
4207 Online
110063 Solutions
New Discussion

Re: tar command

 
Carter Jay
Advisor

tar command

Hello,

I'm trying to make a script in order to perform some incremental backup using tar.
Here is the beginning of my script.
I want to perform a tar file with files contained ina file created with a find command:

#!/bin/sh
BACK_H="/back/backlog"
echo "Creation Date:" > $BACK_H/logdate.log &&
date >> $BACK_H/logdate.log 2> $BACK_H/logerrordate.log &&
echo "Saved files :" > $BACK_H/logsave.log &&
find / -mtime -1 -print >> $BACK_H/logsave.log 2> $BACK_H/logerrorsave.log

I would like to inject files from my $BACK_H/logsave.log file in a new tar file?

How can I perform this?

Thanks in advance

Regards

Jerome
5 REPLIES 5
Carter Jay
Advisor

Re: tar command

Hi again,

The fact is that I would like one tar (no xarg issue).
after, i will use the mt command to mark the eof.

Thanks again

Regards

Jerome
Carter Jay
Advisor

Re: tar command

Apologise,

I've just seen the -I argument in a tar man.
Hope it is working

Regards

Jerome
Deepak Extross
Honored Contributor

Re: tar command

Assuming you have a tarball called X.tar, to add a file abc.sh to X.tar, you can:
tar -rvf abc.sh X.tar

Hope this helps.
harry d brown jr
Honored Contributor

Re: tar command


use fbackup

or better yet, search with google, on:

+incremental +backups +tar

and find hits like this:

http://www.linux-backup.net/full_inc.gwif.html


Of course you know that tar has a 2gb limitation, and that you should consider gnu's tar.

live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: tar command

Jerome,

I think you are talking about the GNU tar program, because the standard tar DOES NOT HAVE AN (I) option, but GNU tar does NOT have an (I) option either!

???

live free or die
harry
Live Free or Die