Perform rsync while following sym links
The -L flag to rsync will sync the contents of files or directories linked to, rather than the symbolic link.
The -L flag to rsync will sync the contents of files or directories linked to, rather than the symbolic link.
You can create a symbolic link with the command line utility mklink. MKLINK [[/D] | [/H] | [/J]] Link Target /D Creates a directory symbolic link. Default is a file symbolic link. /H Creates a hard link instead of a symbolic link. /J Creates a Directory Junction. Link specifies the new symbolic link name. Target … Read more
Use the -f flag to print the canonicalized version. For example: readlink -f /root/Public/myothertextfile.txt From man readlink: -f, –canonicalize canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist
Using -f with ln will overwrite any link that was already there, so as long as you have the correct permissions, it should work… It’s always worked for me. What operating system are you using?