Skip to content

2-way sync of folders which are _outside_ of the local Nextcloud folder #17570

Description

@tobiasKaminsky

Similar to FolderSync or EasySync the idea is to sync an external, not yet folder to Nextcloud server and back.

This is opposite to internal 2way-sync.

Use case could be

  • sync Notes folder to Nextcloud
  • backup any folder to Nextcloud
  • …

This issue will be updated to take implementation ideas into account.

Please 👍 if you like this feature, so that we know about the "demand" of it.

Activity

  1. BroOtti commented on Sep 7, 2026

    @BroOtti
  2. tobiasKaminsky commented on Sep 7, 2026

    @tobiasKaminsky
    Author
  3. LordSushiPhoenix commented on Sep 7, 2026

    @LordSushiPhoenix
  4. BroOtti commented on Sep 7, 2026

    @BroOtti
  5. narcisgarcia commented on Sep 7, 2026

    @narcisgarcia

    Can it be solved by making internal links to outside folders?

  6. BroOtti commented on Sep 7, 2026

    @BroOtti

    Can it be solved by making internal links to outside folders?

    The problem is, the app doesn't check for changed files in synced directories. Iirc, this was never implemented and there was never a 2way sync in the android app. You can read more about it in #19

  7. tobiasKaminsky commented on Sep 8, 2026

    @tobiasKaminsky
    MemberAuthor

    External sync is a bit more complicated, since we do not want to duplicate data:

    • external file (e.g. /dcim/1.jpg)
    • file inside NC app (/data/storage/com.nextcloud.client/user/dcim/1.jpg)
    • file on server

    So if now such a file is changed inside NC app, it gets uploaded to server (like usually), but then it has a 2-way sync conflict between external file (dcim folder) and server.

    That is one of the problems, why it is more complicated than any external app like folderSync/EasySync:
    They only compare two locations: one local folder <-> one folder on server

  8. narcisgarcia commented on Sep 9, 2026

    @narcisgarcia
    • external file (e.g. /dcim/1.jpg)
    • file inside NC app (/data/storage/com.nextcloud.client/user/dcim/1.jpg)
    • file on server

    Don't dupolicate data:
    option a) Determine unique files same as GNU readlink -f allows to do.
    option b) If you are syncing files outside of /data/storage/com.nextcloud.client... then don't replicate nor link them inside this.

  9. PhilLab commented on Sep 24, 2026

    @PhilLab
    Contributor

    @tobiasKaminsky this sounds related: #11470

    If a user chooses to manage all their photos on the phone's default software, deleting or moving as needed, the nextcloud server directory will invariably become cluttered up. [...]

    The mode assumes the local directory on the phone is the golden source

    I have repeatedly seen exactly this usage pattern, and the chaos it causes 😁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions