On Tuesday 25 December 2007, Neil Bothwick wrote:
> 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.

Thanks to Neil and Roman,
I will try out your amendments tomorrow.
Neil, 
I am using ext2 on the usb backup disk. I'm not sure if I understand you 
correctly. What do you mean by Use --one-file-system ? I need to just 
create the empty directories of /proc, sys,  /run and any others that are 
created on start up.  Don't I?

Thank you both for your interest
Paul

-- 
This message has been sent using kmail with gentoo linux
-- 
[EMAIL PROTECTED] mailing list

Reply via email to