AFAIK TAR just stuffs everything into one file, no compression. Gzip after TARing
/B ----- Original Message ----- From: "DuSTiN KRySaK" <[EMAIL PROTECTED]> To: "Redhat Mailing List" <[EMAIL PROTECTED]> Sent: Friday, February 14, 2003 13:32 Subject: Re: Sync a folder? > Thanks! > > I think I might actually just do it with TAR - it seems to work fine, and > then the output is compressed too. > > > > > > Dustin > > On 2/14/03 12:40 PM, "Sites, Brad" <[EMAIL PROTECTED]> spit this out onto > my computer screen: > > > DuSTiN KRySaK wrote: > >> Hi there - I am wondering what the best command is to use to sync one > >> folder with another? I am simply backing up a folder to another > >> drive, and I know I could just copy over, but I want the backup to > >> have any files removed that I may remove out of the original.... > >> > >> I'm just going to throw it in a shell script and get cron to run it > >> nightly. > >> > > > > <OPINION> > > Try rsync. It's a great tool for doing exactly what you want in a single > > command. > > > > Probably something like: > > > > rsync -Caz /source_dir/ /destination_dir > > > > Check out the man page for rsync to make sure what switches you need. Rsync > > will also work across machines if you need it to. > > > > Only need to put the one command with the correct switches in cron, so you > > wouldn't need to create a shell script. > > </OPINION> > > > > HTH, > > Brad Sites > > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list
