MLUG: Re: [MLUG] groking rsync
Re: [MLUG] groking rsync
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On 5/3/07, Huggard, Arthur Charles (UMC-Student) <EMAIL:PROTECTED> wrote:
Another handy rsync switch (in case you're using rsync for remote backups) is --link-dest <old-directory>

If files are unchanged, this command will create a hardlink of the old file in the new directory, thus enabling you to maintain several "full backups" for the disk price of incremental ones! For example: here's the crux of the backup scheme I use on the lab servers:

rsync -a --delete --delete-excluded --delete-after --rsh="ssh -l `hostname`" --exclude="/sys/*" --exclude="/proc/*" --exclude="/mnt/*/*" --rsync-path="sudo /usr/bin/rsync" --link-dest=../backup.1 /  destination:./backup.0/


I had a script that did this on a reiserfs / linux RAID5 system, and it would get wedged if there were more than a couple hundred hardlinks to the same file. Never was able to track it down more closely than that. This was with one of the early 2.4 kernels.

Regards,
Mark
EMAIL:PROTECTED
--
Mark Rages, Engineer
Midwest Telecine LLC
EMAIL:PROTECTED

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members