I wanted to back up pictures from my Android phone so I set up syncthing on my Ubuntu server and Android. I set up an “only sending” folder on my Android with trash can versioning and “never delete”.
When accepting the shared folder on my Server I already wondered why it did not automatically default to “just receive” which I set manually. Well I was expecting to be able to delete the pictures from my phone now, since I selected to never delete files in the trash.
But apparently syncthing does not care about logic. After first syncing all files to the server and deleting them on my phone they got deleted on both the server and the phone (expected) but it did NOT keep anything in the .stversions folders neither on phone nor server (!).
I have two questions:
How do I get my files back
Who came up with the idea that folder settings don’t make any logical sense? I set up file versioning but there is none. How? Why?
Among the questions I have — did you confirm that all your files had finished syncing and were intact before deleting them from your phone? How do you back your phone up other than this new procedure you were trying?
File Versioning only applies to files received, look at the big yellow box at (File Versioning — Syncthing documentation). Agreed that the feature doesn’t do anything on a Send Only Folder, but there are use cases for temporarily changing a Folder to Send Only, for myself I would not ask for them be mutually exclusive.
Respectfully, disabling your backups before testing a new backup system is not the right order of operations.
I’m sorry that you lost your files, but it really needs to be emphasised that Syncthing is not backup software. The main purpose is to make both sides identical to each other (and this is the default and recommended configuration).
I would strongly suggest checking the Documentation (https://docs.syncthing.net) before playing around with any of the options (and especially things like file versioning which operate in a specific way, i.e. it can only save backup copies of files received from other devices, not when editing files locally).
I agree that it was a bit naive on my end to disable backups, but giving the user the option to enable a file versioning AT ALL, when in fact there is no file versioning happening for the specific configuration is incredibly bad design. This should not be possible, under any circumstances.
I probably have to spin up PhotoRec or TestDisk. Fortunately I was able to dismount the RAID safely immediately.
I guess I will have a look at other sync software in the future. Thanks anyways.
There are some technical issues why we cannot just remove or disable file versioning even when it doesn’t actually do anything when the folder is set to a specific type.
For example, you may use Send & Receive with File Versioning for a while, and only then change to Send Only. Even though files cannot be versioned anymore, the other settings, e.g. cleanup interval and such, are still in use, and you can also restore previously backed up copies when needed.
Dude, you deleted your backups and disregarded a large yellow warning box in the documentation for Syncthing. This isn’t a design failure. I’m not on the Syncthing team, my ego isn’t in this, and the software is certainly not perfect. But if you disable your own backups and then don’t apparently read the documentation, that’s not a design failure.
It’s actually quite logical how Syncthing behaves. You enabled versioning on the Android side. But then you went ahead and deleted all files on the phone. Where should Syncthing take them from to create versioned copies? They were already gone.
And it doesn’t even make much sense trying to keep versions on the Android side if that is where you want to get rid of the files. It would mean that your storage requirement stays exactly the same. And the files would again only be stored on that side (inside .stversions now), which is just the same situation you started from with Syncthing. So was completely logical that versioning on the Android side is not what you want.
In the future, please take responsibility for your files, i.e. move or copy them someplace safe on the computer manually, outside of any automated tool’s influence. You relied on Syncthing moving them to a trash folder, but the word alone should tell you that it’s meant for disposable data, not a safe haven for long term storage.
I disagree with you completely here: If you don’t read the documentation for anything called “file versioning” that’s on you, especially if you’re using it for any kind of backup.
In this particular case, versions wouldn’t have been created regardless of the folder type. This is because file versioning should’ve been enabled on the remote device in the first place.
Meta-post, please ignore in regard to the actual topic.
Is it only my impression, or would anyone else suspect @kolodzikearnest9770 to be a bot? New user with their first post in this topic and a similarly short and useless post in another topic. Isn’t it strange to be talking about “keep circling back to” for a new user? I smell slop here.
No idea what the intention is. Maybe building accounts to later edit posts and insert link spam? I’ve seen similar behavior on other forums. People, please keep a watch out for strangely isolated, opinionated posts from new users.