After restoring my Syncthing setup from a backup on a fresh Android—without copying over the actual synced folders—Syncthing removed all files from my laptop. Fortunately I had versioning turned on for all folders, so nothing was lost. After some searching I found two ways to easily restore versions for thousands of files:
- With a tool for Windows built by julien.robin28, see Code share : Syncthing-Restore for .stversions folder
- With a shell script that strips the timestamp from version filenames, see Restore original name versioned files with linux command
I’ve worked out yet another way, through the web interface:
-
Click on the folder you’d like to restore versions for.
-
Click “Versions”.
-
Run this jQuery in your developer console to select the second option of every dropdown in this modal—which happens to be latest version:
$(’#restoreVersions ul.dropdown-menu li:nth-child(2) a’).click()
-
Go grab a cup of coffee, this might take a while, depending on how long the list is.
-
Click “Restore” at the bottom of the list.
I can’t guarantee that this selector will always work, but it did today and for me.
Good luck.