On Monday, March 21, 2011, Omer Zak wrote: > I notice the anomaly both /home and /public get rsync'ed into > $MOUNT/home-public. > Could it be that /public has files with the same name as deleted files > in /home? > (Not to mention the more serious problem that $MOUNT/home-public would > contain only files from /public, no files from /home.) That's not an anomaly or a problem. The result of those two lines is that under $MOUNT/home-public there are 2 directories - public and home (so I get $MOUNT/home-public/public and $MOUNT/home-public/home). Note thatthat's exactly what happens in $MOUNT/system which ends up with boot, etc, root and several other directories.
> > By the way, my own backup script uses the following rsync flags: > rsync -avH --progress --max-delete=200000 --delete --delete-excluded > --exclude-from=$EXCLUSIONS_FILE $FROM $TO Not very different from mine (because the -a param you use includes most of what I explicitly use), but I think S is important, especially if there are unfinished torrents on the system. Maybe I should add -pDH to my script. > > On Mon, 2011-03-21 at 21:39 +0200, Shlomo Solomon wrote: > > I have a backup script using rsync. I've included part of it below. For > > some reason, everything seems to work OK except that files don't get > > deleted from the backup copy of /home (I've marked the problem with a > > comment). Since the params I specify on all lines of the script are the > > same, I can't see any reason why the /home directory would be handled > > differently. > > > > Any ideas? > > > > > > rsync -rlvtogS --delete /boot $MOUNT/system > > rsync -rlvtogS --delete /etc $MOUNT/system > > rsync -rlvtogS --delete /root $MOUNT/system > > rsync -rlvtogS --delete /sbin $MOUNT/system > > rsync -rlvtogS --delete /tmp $MOUNT/system > > rsync -rlvtogS --delete /usr $MOUNT/system > > rsync -rlvtogS --delete /var $MOUNT/system > > #### next line doesn't work properly > > rsync -rlvtogS --delete /home $MOUNT/home-public > > rsync -rlvtogS --delete /public $MOUNT/home-public > > rsync -rlvtogS --delete /data2 $MOUNT/data > > rsync -rlvtogS --delete /data1 $MOUNT/data -- Shlomo Solomon http://the-solomons.net Sent by KMail 1.13.3 (KDE 4.4.3) on LINUX Mandriva 2010.1 _______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il