script to "restore" all staggered files

i keep running into sync issues when i move folders around.

so, long ago, i decided to keep staggered in both nodes.

they were working good until yesterday. mostly i don’t need to worry about the dreadful .stversions folder and when i do i just go to the gui and restore all latest versions, usually.

don’t know why, but now the gui in both nodes gets stuck on “loading data” when i hit “versions”.

the .stversions folder have 10gb, which i think of unusual, but i also think it went bigger than that before without this issue.

i now realize that probably for my case, trash would serve me nearly as well.

but i do enjoy to have the older versions. gives me a peace of mind, even if it’s not really meant to be a backup - it’s still me “backupish” than trash. and i guess i have used it once or twice.

then i found this interesting script

but it’s still not quite what i need. plus it’ll probably break when there’s more than one version of the same file…



could you please share a script which will just delete all staggered files and keep the newest? newest between staggered and current, very much like the gui works, of course. :grin:

i think this link might eventually lead to an answer, in case i forget to update it here:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.