On Tue, 25 Dec 2007 15:43:32 +0000, Paul Stear wrote:

> I use a script to perform backup to a connected usb harddisk and I have 
> noticed that it appears to be writing all files each time instead of 
> updating only the changes.  I am wondering if rsync has changed.  I
> have read the man pages but am not quite sure if I understand it fully.
> This is part of my script:-
> $RSYNC                                                          \
> -Cvalu --delete-during --stats --progress --exclude '*Trash*' --exclude
> '/home/paul/Programs' --exclude 'run' \
> --exclude 'test' --exclude 'media/' --exclude '/home/paul/video/'
> --exclude 'mnt/' --exclude 'sys' \
> --exclude 'tmp' --exclude 'joan' --exclude 'backup' --exclude 'proc/'
> --exclude 'log' \
> --exclude 'boot' --exclude 'dev/' --exclude 'lost+found' \
> / /mnt/external/MusicBackup ;
>
> Could someone who is more knowledgeable than me please review the above 
> and let me know what changes I need to make.


First of all, put all your excludes in a file and use --exclude-from
filename, it makes thing much easier to read.

What filesystem are you using on the target? If it is FAT, you may need
to use --modify-window because of FAT's different timestamping.

> One other question
> I wanted to create the empty directories on the backup i.e. run, dev,
> also directory links i.e. lib to lib64

Use --one-file-system instead of excluding /proc, /sys etc. It saves
adding all those excludes and it creates the mount-points, because that
are on the source filesystem.


-- 
Neil Bothwick

Ultimate memory manager; Windows, it manages to use it all..

Attachment: signature.asc
Description: PGP signature

Reply via email to