How is "Internal two way sync" supposed to work?

Hi all,

I’m using nextcloud version 3.30.6 downloaded via F-Droid Store on my GrapheneOS phone. I wanted to use the “Two way sync” function, but I’m not sure, if its not working or I do something wrong or I even misunderstand something (I couldn’t find any documentation to that function). So whats exactly happening:

I’m using the App “Signal”. For the Backups I chose the folder (on my phone) /Android/media/com.nextcloud.client/nextcloud/[username]@[server]/Signal. The Backups are done daily in that folder.
Additionally I enabled “Internal two way sync” in my Nextcloud App. The “Singal” Folder is also shown in there (as I ticked the “sync” Checkbox on the Folder-Settings in my Nextcloud App).
Signal only stores two backups (today and yesterday). If a new one will done, the oldest one will be deleted, so that there are only 2 Backups in the folder.

What I expect: If a Backup will be deleted in that folder by Signal, it will also be deleted in Nextcloud. If a new Backup will be created by Signal it will also be automatically uploaded to Nextcloud

What happens: Nothing. I also try deinstall/installing the NC App. I also tryed to sync manually via clicking on “Sync” on the Nextcloud Signal Folder. But nothing happens.

So my question: How is it supposed to work? Where are my mistakes?

Thank you really much in advance!

EDIT: Can my problem be related to that bug? BugFix - NPE internalFolderSyncTimestamp & File Existence Check by alperozturk96 · Pull Request #13612 · nextcloud/android · GitHub Unfortunately I can’t find the bug itself but by reading the headline it sounds a bit like it could be related.

I have the same problem. The sync of a folder don’t work. I am able to download only files.

I found this comment in the documentation Desktop and mobile synchronization — Nextcloud latest User Manual latest documentation

“Unfortunately, 2-way-sync, a.k.a bidirectional sync, isn’t fully implemented in the Android client yet. See this issue on GitHub for the current feature’s status.”

NOTE if you also want this feature, leave a :+1: on the first post in the github link above. (Do not comment “I need this too” or similar on github please!)

We should implement something called Auto download first… self explanatory right? Haha

I had exactly the same usecase as you: uploading my Signal backups to Nextcloud.
Two way sync did not work for me so I built the following workaround.

  1. On your Android phone add the Signal backup folder as an normal auto upload folder
  2. Install the auto tagging app Files automated tagging - Apps - App Store - Nextcloud
  3. Install the retention app Retention - Apps - App Store - Nextcloud
  4. On your Nextcloud website in Settings > Administrator Settings > Flow add the following config to automatically tag newly uploaded backup files and delete them after a certain period.

Here is the regex to match new files:

/^signal-\d\d\d\d-\d\d-\d\d-\d\d-\d\d-\d\d\.backup$/