Hi folks, I've been trying to wrap my head around this for a bit, done my googling and archive searching but I still can't seem to 'get' it. Here goes: I've a spare drive in my CentOS5.1 box, which (for testing now) I mount manually under /mnt/backup I want to backup the /home tree to that box nightly via rsync (cronjob), so I tried this: rsync -avrogz /home/ /mnt/backup/ All goes well, but it seems that rsync is copying the files and compressing them into an archive....both the file structure and the archive exist. Is there a flag I'm missing, or is there a better, more efficient way to get this accomplished? Thanks in advance, -Ray
On Apr 7, 2008, at 13:07, Ray Leventhal wrote:> I want to backup the /home tree to that box nightly via rsync > (cronjob), so I tried this: > > rsync -avrogz /home/ /mnt/backup/First, drop "rog" from the options, as they are implied with -a. Also, since you are not going over a (potentially slow) network, drop the "z" as well, leaving you with just "rsync -av". Alfred
On Mon, Apr 7, 2008 at 12:07 PM, Ray Leventhal <centos at swhi.net> wrote:> Hi folks, > > I've been trying to wrap my head around this for a bit, done my googling > and archive searching but I still can't seem to 'get' it. > > Here goes: > > I've a spare drive in my CentOS5.1 box, which (for testing now) I mount > manually under /mnt/backup > > I want to backup the /home tree to that box nightly via rsync (cronjob), so > I tried this: > > rsync -avrogz /home/ /mnt/backup/ > > All goes well, but it seems that rsync is copying the files and compressing > them into an archive....both the file structure and the archive exist. Is > there a flag I'm missing, or is there a better, more efficient way to get > this accomplished?rsync does not create archives. Are you sure that the archive does not exist in the source directory? Is it just being rsynced along with everything else? Perhaps it is left over from previous backup strategies. Have you opened up the archive to look at dates and timestamps? -- Jeff
I run several backup scripts by cron, one of which backs up my mail. I do not want it to back up the Trash folder, but it appears to be doing so. I conclude that my script is faulty somewhere, and would be grateful for advice. The command is rsync -auvz --delete-after --exclude-from=/home/anne/rsync_skiplist_mail.txt /home/anne/Maildir/ /Data3/anne/Maildir/ where rsync_skiplist_mail.txt says *~ .[a-z]* .[A-Z]* Maildir/.INBOX.Bugs/ Maildir/.Trash/ Comments, please? Anne