Hi, i'm doing a backup of a windows installation using rsync.
Everything is working fine except for symlinks, the problem is that
symlinks are taking absolute path so they're going to be broken as
soon a paths get changed. look at the example:

$ ls -la /mnt/rsync/vista/
wxrwxrwx 1 root root   4096 nov 11 17:41 .
drwxr-xr-x 5 root root      5 nov 20 12:10 ..
lrwxrwxrwx 1 root root     56 mar 24  2009 Archivos de programa ->
/mnt/vista/Program Files
drwxrwxrwx 1 root root   4096 mar 24  2009 Boot
-rwxrwxrwx 1 root root 333203 ene 21  2008 bootmgr
-rwxrwxrwx 1 root root   8192 mar 24  2009 BOOTSECT.BAK
lrwxrwxrwx 1 root root     40 nov  2  2006 Documents and Settings ->
/mnt/vista/Users
-rwxrwxrwx 1 root root 171136 sep  4  2009 grldr
-rwxrwxrwx 1 root root 171136 sep  2  2009 grldr.bak
drwxrwxrwx 1 root root      0 jun  1  2009 Jocs
-rwxrwxrwx 1 root root 904704 dic  1  2006 msdia80.dll
drwxrwxrwx 1 root root   8192 oct 27 17:03 ProgramData
drwxrwxrwx 1 root root   4096 sep  6 21:58 Program Files
drwxrwxrwx 1 root root   8192 oct 11 16:43 Program Files (x86)
drwxrwxrwx 1 root root      0 mar 24  2009 RaidTool
drwxrwxrwx 1 root root      0 mar 27  2010 $Recycle.Bin
drwxrwxrwx 1 root root   4096 mar 24  2009 System Volume Information
drwxrwxrwx 1 root root   4096 mar 24  2009 Users
drwxrwxrwx 1 root root    264 nov 11 16:23 Windows

The symlink   "Archivos de programa -> /mnt/vista/Program Files" is
wrong, it should point to the relative path, something like "Archivos
de programa -> Program Files". rsync is called this way:

rsync -aERPv --progress rsync://localhost/Windows-Vista-backup /mnt/rsync/vista/

Do someone know which should be the correct options to create clone
backup without breaking permissions neither symlinks? thanks in
advanced :)

Reply via email to