-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I have a directory with a lot of symlinks (both files and dirs), and, when I sync it, the expected behavior would be for the actual file or directory to be synced, not the symlink itself. rsync has the -L flag which does exactly this, so I hope this wouldn't be too hard to implement:
In the same way that bsync has the -o flag to pass arguments to ssh, I propose for there to be a similar flag that allows us to pass custom arguments to rsync. However, this would require some further changes: for instance, to the code that generates the .bsync-snap to account for when we want to follow symlinks (pass the -L flag to find).
However, I also had to edit the flags that are currently passed to rsync by default, namely -a which conflicts with -L. According to man rsync, -a is the same as -rlptgoD, so I just changed -a to -rLptgoD to test, and the rsync part worked.