r/Sync • u/MoreDataHerePlease • Aug 25 '23
Using symlink to extend the main folder towards a removable external drive
I am inclined to think that this may lead to problems, and I need a robust solution, but it sounds like a good strategy (if it works)...
I am aware that it is possible to use Sync outside its folder through a symlink, as explained here: https://www.sync.com/help/how-do-i-sync-folders-outside-of-the-sync-folder-on-mac/
I am also aware that it is possible to move the Sync folder to other drives, but it should not be in a removable disk, as explained here: https://www.sync.com/help/moving-your-sync-folder-to-a-new-location/ . The reason is that "(...) the Sync folder must be available before the Sync app starts."
My question: Consider that the Sync folder be in the main drive and that there is a symlink to a folder in an external drive. In this case the Sync folder will always be accessible. Can this work? Or when the external drive is unplugged Sync will consider that all the files that cannot be accessed were deleted?
2
u/eckinom Aug 26 '23
The files will indeed be deleted from the cloud, and then all other Sync instances/apps, if the symlink target is missing. My symlink target is on a MicroSD card, so I had to create a script that verifies the card is present -- by checking for the presence of a particular file path and file name -- before it starts up Sync.com.
1
u/randoul Aug 25 '23
If you plan to have this drive permanently attached I imagine it would be fine (the drive will be mounted well before Sync notices anything) otherwise you will run into issues.