rsync using --delete but want to not delete symlinks at destination -


using rsync, source directory has number of files , directories. destination has been synced, mirrors files , directories.

however, have manually created symlink in destination not exist in source.

i need use --delete operation in rsync. there way rsync not remove symlink?

there no option achieve way suggested simplest solution described problem add filenames of symlinks rsync exclude pattern

like: --exclude="folder/symlinkname1" --exclude="folder/symlinkname2" 

if there many symlinks can keep list of them in exclude pattern file file may autogenerated little script or bash 1 liner...


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -