Skip to main content
Adding more information.
Source Link
balki
  • 4.7k
  • 6
  • 32
  • 47

I want to sync a big folder hierarchy between two machines. I want to copy the contents of the symlinks if they are absolute, for eg it points to /some/folder/someFile I want to retain the symlinks if they are relative, for eg, it points to ../../somefolder How do I do this?

Edit: Basically I try to avoid recursion. I tried --copy-unsafe-links option, it copies absolute links but skips internal or relative links, does not retain the link.

I want to sync a big folder hierarchy between two machines. I want to copy the contents of the symlinks if they are absolute, for eg it points to /some/folder/someFile I want to retain the symlinks if they are relative, for eg, it points to ../../somefolder How do I do this?

I want to sync a big folder hierarchy between two machines. I want to copy the contents of the symlinks if they are absolute, for eg it points to /some/folder/someFile I want to retain the symlinks if they are relative, for eg, it points to ../../somefolder How do I do this?

Edit: Basically I try to avoid recursion. I tried --copy-unsafe-links option, it copies absolute links but skips internal or relative links, does not retain the link.

Tweeted twitter.com/#!/StackUnix/status/81744014239473664
changing tags
Link
balki
  • 4.7k
  • 6
  • 32
  • 47
Source Link
balki
  • 4.7k
  • 6
  • 32
  • 47

Is there any way to rsync absolute symlinks alone?

I want to sync a big folder hierarchy between two machines. I want to copy the contents of the symlinks if they are absolute, for eg it points to /some/folder/someFile I want to retain the symlinks if they are relative, for eg, it points to ../../somefolder How do I do this?