syncthing and file deletion

hello,

I am new with syncthing, recently I just get a synology nas and I want to use it to sync my android phones. Now I have a question about an use case that I am strugglign with; As you know, on phone it is possible to have duplicated imgs and videos, because the same media can be send on different IMs or groups, so once I sync’d my android phone media to the NAS, on NAS side I run a script to remove all duplicates, now the syncthing on android is trying to upload again the file (duplicated) deleted on the NAS folder.

How can I make sure that syncthing from android phone to the NAS will not upload the deleted files on NAS again, but just the new ones created on the phone?

thanks in advance.

1 Like

Something sounds wrong here. If the folders are set to the default “Send & Receive” type, then the deletions should also be pushed to the phone. Even when using “Send Only” and “Receive Only” types, the deleted files still shouldn’t be sent back from the phone to the NAS.

The only case that I can think of when this happens is when deleting files that are ignored on the other side, and then removing them from the ignore patterns there, which then makes Syncthing treat them as new additions.

so the files are not sent to the NAS again if I have “Send Only” set on phone? now how can I make sure that the files are not removed from the phone too? “ignodeDelete” and “Send Only” enabled on phone syncthing helps?

No, they should not be “undeleted” and sent back regardless of the setting. That’s why something doesn’t sound right here. Are you sure there is no other software on the phone that prevents deletion of those files?

“Send Only” on the phone will prevent any remote changes from getting back to it. “ignoreDelete” is a different mechanism that prevents the folder from accepting deletions from the remote side (but it will accept other types of changes). Please keep in mind that if you use any of the two and delete files on the other side, then the folder on the phone will end up being marked as “out of sync” permanently.

1 Like

uhm, ok let me sumamrize what I understand, if I set “Send Only” on my phone, even if I delete a file on the NAS, the file will not be deleted on the phone as well, is it correct?

so let me explain what I really want: I do not want that deleted files on NAS will be send again from the phone, and yes, I don’t want that these deleted files on NAS will be deleted on phone as well. So once I deleted the files on NAS and a new file is created on phone, I just want that the new files are send to the NAS.

1 Like

Do you want to be able to send other changes (i.e. modifications and new files) to the phone as well? If not, then I’d say “Send Only” on phone should be enough to achieve the goal.

Yes, but please keep in mind that file modifications and new files also won’t be sent to the phone.

You should also remember not to press the “Override Changes” button on the phone, as that would override all changes made on the NAS.

1 Like

ideally yes, I want to send from the phone the new and changed files, but not resend the files deleted on the NAS. With “Send Only” set on the phone it will work?

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