1 |
Hi, i'm doing a backup of a windows installation using rsync. |
2 |
Everything is working fine except for symlinks, the problem is that |
3 |
symlinks are taking absolute path so they're going to be broken as |
4 |
soon a paths get changed. look at the example: |
5 |
|
6 |
$ ls -la /mnt/rsync/vista/ |
7 |
wxrwxrwx 1 root root 4096 nov 11 17:41 . |
8 |
drwxr-xr-x 5 root root 5 nov 20 12:10 .. |
9 |
lrwxrwxrwx 1 root root 56 mar 24 2009 Archivos de programa -> |
10 |
/mnt/vista/Program Files |
11 |
drwxrwxrwx 1 root root 4096 mar 24 2009 Boot |
12 |
-rwxrwxrwx 1 root root 333203 ene 21 2008 bootmgr |
13 |
-rwxrwxrwx 1 root root 8192 mar 24 2009 BOOTSECT.BAK |
14 |
lrwxrwxrwx 1 root root 40 nov 2 2006 Documents and Settings -> |
15 |
/mnt/vista/Users |
16 |
-rwxrwxrwx 1 root root 171136 sep 4 2009 grldr |
17 |
-rwxrwxrwx 1 root root 171136 sep 2 2009 grldr.bak |
18 |
drwxrwxrwx 1 root root 0 jun 1 2009 Jocs |
19 |
-rwxrwxrwx 1 root root 904704 dic 1 2006 msdia80.dll |
20 |
drwxrwxrwx 1 root root 8192 oct 27 17:03 ProgramData |
21 |
drwxrwxrwx 1 root root 4096 sep 6 21:58 Program Files |
22 |
drwxrwxrwx 1 root root 8192 oct 11 16:43 Program Files (x86) |
23 |
drwxrwxrwx 1 root root 0 mar 24 2009 RaidTool |
24 |
drwxrwxrwx 1 root root 0 mar 27 2010 $Recycle.Bin |
25 |
drwxrwxrwx 1 root root 4096 mar 24 2009 System Volume Information |
26 |
drwxrwxrwx 1 root root 4096 mar 24 2009 Users |
27 |
drwxrwxrwx 1 root root 264 nov 11 16:23 Windows |
28 |
|
29 |
The symlink "Archivos de programa -> /mnt/vista/Program Files" is |
30 |
wrong, it should point to the relative path, something like "Archivos |
31 |
de programa -> Program Files". rsync is called this way: |
32 |
|
33 |
rsync -aERPv --progress rsync://localhost/Windows-Vista-backup /mnt/rsync/vista/ |
34 |
|
35 |
Do someone know which should be the correct options to create clone |
36 |
backup without breaking permissions neither symlinks? thanks in |
37 |
advanced :) |