Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] rsync for backup, can anybody help
Date: Tue, 25 Dec 2007 19:50:25
Message-Id: 20071225194423.32f13c1c@loonquawl.digimed.co.uk
In Reply to: [gentoo-user] rsync for backup, can anybody help by Paul Stear
1 On Tue, 25 Dec 2007 15:43:32 +0000, Paul Stear wrote:
2
3 > I use a script to perform backup to a connected usb harddisk and I have
4 > noticed that it appears to be writing all files each time instead of
5 > updating only the changes. I am wondering if rsync has changed. I
6 > have read the man pages but am not quite sure if I understand it fully.
7 > This is part of my script:-
8 > $RSYNC \
9 > -Cvalu --delete-during --stats --progress --exclude '*Trash*' --exclude
10 > '/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 above
19 > and let me know what changes I need to make.
20
21
22 First of all, put all your excludes in a file and use --exclude-from
23 filename, it makes thing much easier to read.
24
25 What filesystem are you using on the target? If it is FAT, you may need
26 to use --modify-window because of FAT's different timestamping.
27
28 > One other question
29 > I wanted to create the empty directories on the backup i.e. run, dev,
30 > also directory links i.e. lib to lib64
31
32 Use --one-file-system instead of excluding /proc, /sys etc. It saves
33 adding all those excludes and it creates the mount-points, because that
34 are on the source filesystem.
35
36
37 --
38 Neil Bothwick
39
40 Ultimate memory manager; Windows, it manages to use it all..

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] rsync for backup, can anybody help Paul Stear <gentoo@××××××××××××.com>
Re: [gentoo-user] rsync for backup, can anybody help Paul Stear <gentoo@××××××××××××.com>