I am using Rsync to mirror my primary drive to a mounted second drive. I am using a crontab to control it: 30 3 * * * /usr/bin/rsync -rpogl /* /mnt/backup2/systemBackup/ The first run seems fine. But the subsequent running seems to double the original directory size. I notice this by running df -k. The destination size increases two fold, as if each time Rsync runs, it repeats itself, rather than skipping over unmodified files. Do i need to change a switch? FYI, i am running RH 7.1. suggestions? thanks in advance! Ralph /-----------------------------------------\ Ralph Brown php4u@pacbell.net OS X 10.0.4-10K RPM SCSI HD Apache - PHP - MySQL - WML "Forget World Peace..Try Using Your Turnsignal" \-----------------------------------------/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 787 bytes Desc: not available Url : http://lists.samba.org/archive/rsync/attachments/20010922/0f44cea6/attachment.bin
On 22 Sep 2001, Ralph Brown <php4u@pacbell.net> wrote:> I am using Rsync to mirror my primary drive to a mounted second > drive. I am using a crontab to control it: > > 30 3 * * * /usr/bin/rsync -rpogl /* /mnt/backup2/systemBackup/ > > The first run seems fine. But the subsequent running seems to double > the original directory size. I notice this by running df -k. The > destination size increases two fold, as if each time Rsync runs, it > repeats itself, rather than skipping over unmodified files. Do i need > to change a switch? FYI, i am running RH 7.1.So, /mnt is one of the directories that will be matched by /*. I think you will find all of /mnt/backup2 has been copied to /mnt/backup2/systemBackup/mnt/systemBackup/. You can avoid this with --exclude /mnt you probably also want --exclude /proc and perhaps some others. -- Martin
It makes perfect sense. /mnt/backup2/systemBackup is a subdirectory of / Every time you run it, you're also backing up /mnt/backup2/systemBackup/ into itself... look. /mnt/backup2/systemBackup/mnt/backup2/systemBackup/ exists, and possibly deeper. add "--exclude=/mnt/backup2/systemBackup" Tim Conway tim.conway@philips.com 303.682.4917 Philips Semiconductor - Longmont TC 1880 Industrial Circle, Suite D Longmont, CO 80501 Available via SameTime Connect within Philips Available as n9hmg on AIM perl -e 'print pack(nnnnnnnnnnnn, 19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970), ".\n" ' "There are some who call me.... Tim?" Ralph Brown <php4u@pacbell.net>@lists.samba.org on 09/22/2001 12:52:33 PM Sent by: rsync-admin@lists.samba.org To: rsync@lists.samba.org cc: (bcc: Tim Conway/LMT/SC/PHILIPS) Subject: destination dir doubles in size Classification: -------------- next part -------------- I am using Rsync to mirror my primary drive to a mounted second drive. I am using a crontab to control it: 30 3 * * * /usr/bin/rsync -rpogl /* /mnt/backup2/systemBackup/ The first run seems fine. But the subsequent running seems to double the original directory size. I notice this by running df -k. The destination size increases two fold, as if each time Rsync runs, it repeats itself, rather than skipping over unmodified files. Do i need to change a switch? FYI, i am running RH 7.1. suggestions? thanks in advance! Ralph /-----------------------------------------\ Ralph Brown php4u@pacbell.net OS X 10.0.4-10K RPM SCSI HD Apache - PHP - MySQL - WML "Forget World Peace..Try Using Your Turnsignal" \-----------------------------------------/