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
Post a Comment