Re: [gentoo-user] symlinks + rsync backup

2010-11-21 Thread Pau Peris
Running the command you posted above gies the same result. Links on
the new location are pointing to the absolute path old location.

$ ls -la /mnt/rsync/vista
lrwxrwxrwx 1 root root 56 mar 24  2009 Archivos de programa ->
/mnt/vista/Program Files


2010/11/21 Andrea Conti :
>> rsync -aERPv --progress rsync://localhost/Windows-Vista-backup 
>> /mnt/rsync/vista/
>
> Is there a specific reason you are using rsync in daemon mode on the
> sending side for a local tranfer? If the symlinks look right on the
> mounted windows fs, I guess that
>
> rsync -aEPv /mnt/vista/. /mnt/rsync/vista/
>
> would give the correct result.
>
> andrea
>
>
>



Re: [gentoo-user] symlinks + rsync backup

2010-11-21 Thread Mick
On Saturday 20 November 2010 23:54:36 Pau Peris wrote:
> 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 root264 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 :)

I haven't tried it, but have you experimented with these options:

-l, --links copy symlinks as symlinks
-L, --copy-linkstransform symlink into referent file/dir
--copy-unsafe-links only "unsafe" symlinks are transformed
--safe-linksignore symlinks that point outside the 
tree
-k, --copy-dirlinks transform symlink to dir into referent dir
-K, --keep-dirlinks treat symlinked dir on receiver as dir

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] symlinks + rsync backup

2010-11-21 Thread Andrea Conti
> rsync -aERPv --progress rsync://localhost/Windows-Vista-backup 
> /mnt/rsync/vista/

Is there a specific reason you are using rsync in daemon mode on the
sending side for a local tranfer? If the symlinks look right on the
mounted windows fs, I guess that

rsync -aEPv /mnt/vista/. /mnt/rsync/vista/

would give the correct result.

andrea




Re: [gentoo-user] symlinks + rsync backup

2010-11-20 Thread Neil Bothwick
On Sun, 21 Nov 2010 00:54:36 +0100, Pau Peris wrote:

> 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.

app-misc/symlinks has an option to convert absolute links to relative.
Fixing the source filesystem once is more efficient than trying to work
around this every time you backup.


-- 
Neil Bothwick

Someone who thinks logically is a nice contrast to the real world.


signature.asc
Description: PGP signature


[gentoo-user] symlinks + rsync backup

2010-11-20 Thread Pau Peris
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 root264 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 :)