1 |
> Neil has handled this... I wanted to include the rsync syntax to |
2 |
> collect only directories... full or empty: |
3 |
> |
4 |
> So to collect all the directories regardless of your excludes |
5 |
> put this before any excludes: |
6 |
> --include=/**/ |
7 |
> |
8 |
> The trailing slash confines it to direcotories only. |
9 |
Thanks for the tip, |
10 |
I have been trying to get this to work properly for most of the day, but I |
11 |
still have problems. |
12 |
On my file system I have a directory "lib" which is a link to "lib64 |
13 |
(Folder)". I have tried various options to the rsync command but still |
14 |
haven't managed to retain this link on the backup disc. |
15 |
Am I right in thinking that I would need to do a separate backup for /boot |
16 |
|
17 |
Also I am getting a lot of errors and the backup is finishing early and |
18 |
not producing the stats. i.e. |
19 |
|
20 |
rsync: |
21 |
symlink "/mnt/external/OneFileSystemBackup/usr/i686-pc-linux-gnu/lib/libopcodes.so" -> "/usr/lib32/binutils/i686-pc-linux-gnu/2.18/libopcodes.so" |
22 |
failed: Operation not permitted (1) |
23 |
rsync: chown "/mnt/external/OneFileSystemBackup/usr/include" failed: |
24 |
Operation not permitted (1) |
25 |
rsync: connection unexpectedly closed (11192228 bytes received so far) |
26 |
[generator] |
27 |
rsync error: error in rsync protocol data stream (code 12) at io.c(458) |
28 |
[generator=2.6.9] |
29 |
rsync: connection unexpectedly closed (78658 bytes received so far) |
30 |
[sender] |
31 |
rsync error: error in rsync protocol data stream (code 12) at io.c(458) |
32 |
[sender=2.6.9] |
33 |
Backup finished at 16:43, umounting /dev/sdd1 |
34 |
|
35 |
This is my command line:- |
36 |
$RSYNC \ |
37 |
-vaHKiq --delete-during --stats --progress --modify-window=2 --one-file-system --include=/**/ / |
38 |
/mnt/external/OneFileSystemBackup ; |
39 |
|
40 |
More help required please, thanks for your efforts so far. |
41 |
|
42 |
Just a thought, is this the best way to backup my system? |
43 |
Thanks |
44 |
Paul |
45 |
|
46 |
-- |
47 |
This message has been sent using kmail with gentoo linux |
48 |
-- |
49 |
gentoo-user@g.o mailing list |