TAR and CPIO

2007-12-25 10:39:00

Thank you all very much for the many replies and suggestions. The

list is too long to compile. The members of this list and the exchange

of technical info is awesome! Thanks again!

The overwhelming suggestion is to use rdist with the -c option. But,

others responded with the following:

- include a -newer option with the cpio command.

- include -mtime +2 -ctime +2 -depth -print options with the find

     command.

- use ufsdump and ufsrestore

- and several suggested to use rsync available through:

      ftp://samba.anu.edu.au/pub/rsync

Ernest Cespedes

Ernest Cespedes wrote:

> Hello Sun Managers,

>

> I am stumped on this one and some help with using incremental updates on

>

> copying directories using TAR or CPIO (or any other method)

>

> Here's my objective:

>

> I want a duplicate copy of a directory (hosta:/dir-a) and call it

> hostb:/dir-b on a daily basis. Rather than copying the entire

> directory,

> which is apprx. 2GB, I would like to just copy the updated files and

> directories.

>

> I read the TAR and CPIO man pages several times and couldn't not

> find an option that would do incremental copies. Here's what I'm using

>

> to copy a directory:

>

> # cd $1; tar cf - . | (cd $2; tar xfph -)

> or

> # cd $1; find . -depth -print | (cd $1; cpio -pdlm $2)

>

> Any help or suggestions are highly appreciate. I will also summarize.

>

> Thanks,

>

> -ernest

>

> ------- =_aaaaaaaaaa0--

Comments

Got something to say?

You must be logged in to post a comment.