Rsync parity: symlink handling flags (--links, --copy-links, --safe-links, --copy-unsafe-links) #120
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FastSync has
follow_symlinksin the scanner config but no CLI flags to control symlink behavior. Rsync provides several symlink-related flags that FastSync should support:Missing flags
-l, --links— copy symlinks as symlinks (currently seems to be always on?)-L, --copy-links— transform symlink into referent file/dir--copy-unsafe-links— only copy unsafe symlinks--safe-links— only copy symlinks that point within the source treeCurrent code
src/client/scanner.c— hasfollow_symlinksfield (boolean, currently not exposed via CLI)src/shared/config.h— no symlink-related config fields exposedsrc/client/client_cli.c:85-244— no symlink flags parsedSuggested implementation
--links,--copy-links,--safe-linksboolean fields toConfigclient_cli.cscanner.c, use these flags to controlfollow_symlinksbehavior and whether symlinks are transferred as symlinks (not just followed)Reference
rsync man page:
man rsync— the-l,-L,--safe-links,--copy-unsafe-linksoptions