[Question] How to sync junctions, symbolic links and hardlinks?

Discuss new features and functions
User avatar
Darth Agnon
Posts: 9
Joined: 26 Nov 2017

Post by Darth Agnon • 31 Dec 2017, 19:05

Dear FFS forum,

I recently started using Link Shell Extension (http://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html) to try and backup the gamesaves of some old games from their data folders (i.e. these old games save user data to their install folders - I would rather avoid backing up their whole install folders). So I made junctions pointing to their savedata folders (and also some symbolic links to individual persistent savefiles) within a folder that I already back up.

FFS seems to backup symlinked objects just fine, but it ignores junctions, making an empty folder with the junctioned folder's name, but not backing up any contents of the junctioned folder. Is there a hidden setting to force FFS to follow junctions, and back up the contents of junctioned folders?

I think my problem's similar to a couple of old posts that I didn't want to commandeer/necro:
viewtopic.php?t=1809&p=7253&hilit=junction#p7253
viewtopic.php?t=1341&p=5720&hilit=junction#p5720

Many thanks for any help or advice!

Thank you for making such useful software, and for making it free!

Regards, and have a happy new year!

Darth Agnon

User avatar
Zenju
Site Admin
Posts: 4927
Joined: 9 Dec 2007

Post by Zenju • 31 Dec 2017, 19:20

FreeFileSync is supposed to treat Junktions just like Symlinks and should create latter when needed.

User avatar
Darth Agnon
Posts: 9
Joined: 26 Nov 2017

Post by Darth Agnon • 01 Jan 2018, 22:38

Thank you for the reply, Zenju!

As far as I've found with my gamesaves:

a) If I hardlink directly to a file, e.g. gameconfig.txt, that is backed up by FFS
b) If I junction to a folder, e.g. <C:\Program Files x86\game\SAVE\>, FFS simply does not back it up.
c) If I symlink to a folder, FFS again simply does not back it up.

b) and c) mean that I get backups of empty gamesave-folder container folders that I manually make (e.g. <C:\Users\Myname\Saved Games\Skyrim Game Save Container Folder\>), without all the save folders containing save files within them :'(

Is there something I'm doing wrong? or is Link Shell Extension perhaps just a bad plugin?

I guess, as an alternative, I could make an FFS backup plan just for gamesaves, and browse to them directly, but it would be a bit of a pain, as well as another file to keep up to date.

Regards,

Darth Agnon

User avatar
Zenju
Site Admin
Posts: 4927
Joined: 9 Dec 2007

Post by Zenju • 02 Jan 2018, 08:58

I believe you haven't set up FreeFileSync to include Symlinks:
https://freefilesync.org/manual.php?topic=comparison-settings

User avatar
Darth Agnon
Posts: 9
Joined: 26 Nov 2017

Post by Darth Agnon • 04 Jan 2018, 17:58

Thank you so much, Zenju! That was the problem! I can't believe I was so blind as to miss that option (which was indeed unticked) in the settings.

Live long and prosper,

Darth Agnon