Send and Delete

I miss a “Send and Delete” synchronization, i.e. it sends files from a selected folder on the phone to another device, and then deletes these files from the phone

This is not a mode that Syncthing has, nor will have.

1 Like

This is not a mode that Syncthing has, nor will have.

I’п sorry for reviving this thread after an year. But I need to know why such mode is against the philosophy of Synchthing?

I too would be very happy to have the “Send and Delete” type of folders.

I tried “Send Only” but it has some side effects:

  1. I don’t know when it is safe to delete the original files.
  2. When I delete the files from the “receiver” folder (or move the files outside this folder on the receiver device, after a while Syncthing suggest me to sync the same files again. This way I start to have two versions of the same file which I don’t feel as a good way to organize files.

Now I work with “Send and Receive” type of folders to achieve the “Send and Delete” effect. It works but the problem is when I need to move files from multiple locations to one central location. Like to move all the pictires and videos from two or three phones to one computer where they to be organized and edited. Here the problem is that the phones sync between all the phones not only to the computer. This:

  1. slows the synchronization down.
  2. is not optimized use of resources - a file is sinced to many locations only to be deleted after it is moved away from the folder in the central location.

Would you please tell me why the mode “Send and Delete” cannot be done for Synchtnig?

1 Like

Wouldn’t it be better to have individual folders per phone? This way, the files wouldn’t be synced between the phones, but only between each phone and the server. Alternatively, you could set the folder on the phones to Send Only, and on the server to Receive Only. This would make each phone upload its files to the server only. Of course, you would still need to check the files on the server whether the upload has finished (manually or perhaps using some kind of an automated script), but at least the resource waste problem would be solved.

I’m sure it could, but it’s not a form of file synchronization, really. Also, it’s error-prone (imagine two devices mutually configured like this) and gets complicated with more than two devices involved.

Because it’s not syncing at this point.

It’s just glorified rsync, which there is no reason to reimplement.

Wouldn’t it be better to have individual folders per phone?

Now I have individual folders per device. Every device has a folder named “inbox DEVICE-NAME”. For example my Mac has “inbox Mac” folder, my son’s computer has “inbox Ivan” folder. My phone has “inbox P30 Lite” folder.

These folders are spread on every other devices so if I want to send files to my Mac, the only thing to do is to put the fiiles in “inbox Mac” on any of the devices.

This make it simple for me. I have only 5 folders which are the same on all devices. I achieved this sameness with using the same ID for the folders in Syncthing. My “inbox Mac” folder ID is “inboxmac”, my “inbox P30 Lite” ID is “inboxp30lite”.

I tried folder types “Send only”. But there was a side effect where when I move files outside of the destination folder, Syncthing suggest me to resync that files. I did this resync several times before I realize that this way it duplicates my files. I don’t like to have multiple versions of the same files. Maybe I have renamed the first ones, may edited them, or just deleted.

I hate to have duplicate files that’s why I search for “move” option instead of “sync”.

Right, and syncthings name is syncthing for that reason.

Too many people try to use it as some sort of continuous rsync.

It’s not that, stop trying to use it as that. It won’t work.

If you find no other tool for this, I feel like you could (ab)use the “Trash Can Versioning” in syncthing.

Deletion on the originating device would need to be done manually after making sure the file is on the target device.

If you want to have more than one target device, I guess you could somehow share the trashcan folder itself…

Also, the solution people seem to envision here could easily be done if someone were to implement some form of this suggestion:

Which is a far more general approach and is more likely to get support from from the main devs, and indeed has been discussed on github

That might be because so many people are unaware rsync exists, or how to use it. Even though rsync is pretty much included with any common Linux distrution, it doesn’t exactly come bundled with a handy Bootstrap web GUI the way Syncthing does — that makes a big difference for the learning curve.

Yeah even me, I’m not aware of rsync having that functionality — the ability to delete files at the source, after confirming the checksums at the destnation?