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.
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.
rsynchas the-Lflag which does exactly this, so I hope this wouldn't be too hard to implement:In the same way that
bsynchas the-oflag to pass arguments tossh, I propose for there to be a similar flag that allows us to pass custom arguments torsync. However, this would require some further changes: for instance, to the code that generates the.bsync-snapto account for when we want to follow symlinks (pass the-Lflag tofind).However, I also had to edit the flags that are currently passed to
rsyncby default, namely-awhich conflicts with-L. According toman rsync,-ais the same as-rlptgoD, so I just changed-ato-rLptgoDto test, and the rsync part worked.