1 |
On Tuesday 25 December 2007, Neil Bothwick wrote: |
2 |
> On Tue, 25 Dec 2007 15:43:32 +0000, Paul Stear wrote: |
3 |
> > I use a script to perform backup to a connected usb harddisk and I |
4 |
> > have noticed that it appears to be writing all files each time |
5 |
> > instead of updating only the changes. I am wondering if rsync has |
6 |
> > changed. I have read the man pages but am not quite sure if I |
7 |
> > understand it fully. This is part of my script:- |
8 |
> > $RSYNC \ |
9 |
> > -Cvalu --delete-during --stats --progress --exclude '*Trash*' |
10 |
> > --exclude '/home/paul/Programs' --exclude 'run' \ |
11 |
> > --exclude 'test' --exclude 'media/' --exclude '/home/paul/video/' |
12 |
> > --exclude 'mnt/' --exclude 'sys' \ |
13 |
> > --exclude 'tmp' --exclude 'joan' --exclude 'backup' --exclude 'proc/' |
14 |
> > --exclude 'log' \ |
15 |
> > --exclude 'boot' --exclude 'dev/' --exclude 'lost+found' \ |
16 |
> > / /mnt/external/MusicBackup ; |
17 |
> > |
18 |
> > Could someone who is more knowledgeable than me please review the |
19 |
> > above and let me know what changes I need to make. |
20 |
> |
21 |
> First of all, put all your excludes in a file and use --exclude-from |
22 |
> filename, it makes thing much easier to read. |
23 |
> |
24 |
> What filesystem are you using on the target? If it is FAT, you may need |
25 |
> to use --modify-window because of FAT's different timestamping. |
26 |
> |
27 |
> > One other question |
28 |
> > I wanted to create the empty directories on the backup i.e. run, dev, |
29 |
> > also directory links i.e. lib to lib64 |
30 |
> |
31 |
> Use --one-file-system instead of excluding /proc, /sys etc. It saves |
32 |
> adding all those excludes and it creates the mount-points, because that |
33 |
> are on the source filesystem. |
34 |
|
35 |
Thanks to Neil and Roman, |
36 |
I will try out your amendments tomorrow. |
37 |
Neil, |
38 |
I am using ext2 on the usb backup disk. I'm not sure if I understand you |
39 |
correctly. What do you mean by Use --one-file-system ? I need to just |
40 |
create the empty directories of /proc, sys, /run and any others that are |
41 |
created on start up. Don't I? |
42 |
|
43 |
Thank you both for your interest |
44 |
Paul |
45 |
|
46 |
-- |
47 |
This message has been sent using kmail with gentoo linux |
48 |
-- |
49 |
gentoo-user@g.o mailing list |