Hi,
I have 2 laptops connected with an ethernet cable, both running Linux Mint 19.3 MATE.
I'm using freefilesync version 11.16.
I want to use FreeFileSync to sync both laptops. This works, but the settings regarding how to handle symlinks seem to be ignored. Whatever the settings (don't follow symlinks, follow symlinks follow, follow symlinks direct), the result is always the same: symlinks are followed. So while I actually only want FreeFileSync to copy the link to the target laptop, I always end up with a copy of the contents of the linked directories.
Am I missing something?
Thanks!
symbolic link handling over network
- Posts: 3
- Joined: 3 Dec 2019
- Posts: 2525
- Joined: 22 Aug 2012
Don't know why this does not work for you, but it may be related to Linux (I am a Windows user).
If your symbolic link is static (i.e. does not change all the time), you may consider to add the symbolic link to your the Exclude Filter of your FFS sync, and once manually create the correct symbolic link in your destination location.
This should exclude the symbolic link and everything "in" it from your sync, and while your manually placed symbolic link in the destination location will not be overwritten/affected (as it is Excluded), it will still point to the "deeper" files and folders in the location the symlink links to.
If your symbolic link is static (i.e. does not change all the time), you may consider to add the symbolic link to your the Exclude Filter of your FFS sync, and once manually create the correct symbolic link in your destination location.
This should exclude the symbolic link and everything "in" it from your sync, and while your manually placed symbolic link in the destination location will not be overwritten/affected (as it is Excluded), it will still point to the "deeper" files and folders in the location the symlink links to.
- Posts: 3
- Joined: 3 Dec 2019
thanks!
OK, I have a solution. Apparently it is because the computers were connected through sftp, and sftp doesn't handle symlinks too well.
When I connect the computers with sshfs, it works (https://unix.stackexchange.com/questions/242079/how-to-copy-symlinks-as-symlinks-from-one-machine-to-another)
OK, I have a solution. Apparently it is because the computers were connected through sftp, and sftp doesn't handle symlinks too well.
When I connect the computers with sshfs, it works (https://unix.stackexchange.com/questions/242079/how-to-copy-symlinks-as-symlinks-from-one-machine-to-another)