Skip to content

Two-way (bidirectional) synchronization #118

Closed

Description

@alexander-yakushev

I'm sorry if this is answered elsewhere but I couldn't find it in that case.

I want to replace my current Owncloud+Owncloud client (Linux)+FolderSync(Android) setup with Drive+Rclone+FolderSync. But there is one thing I can't figure out how to do with rclone — smart two-way deletion synchronization. Which means: if a file was present on both server (Drive) and local machine, and then was deleted on either of them, the file will be eventually removed on both regardless of which direction you run sync first. Same, if a file was added on either server or client, it will be uploaded to the other one.

Can rclone do that, and if doesn't is there a chance of such functionality in future?

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Activity

  1. ncw commented on Sep 1, 2015

    @ncw
    Member

    No rclone can't do that yet.

    However it could be done I think. Rclone would need to store a little bit of metadata - time of last sync. It could then use that for working out what to do in the delete files case.

  2. alexander-yakushev commented on Sep 1, 2015

    @alexander-yakushev
    Author

    Thank you for the prompt response!

  3. ncw commented on Sep 2, 2015

    @ncw
    Member

    I've made a note about this for the FAQ - I'll leave this ticket open for future developments!

  4. added this to the milestone on Feb 10, 2016
  5. nigelhorne commented on Sep 14, 2016

    @nigelhorne
  6. ncw commented on Sep 14, 2016

    @ncw
    Member

    None at the moment. All the primitives needed are there in rclone, it just needs a 2-way sync expert to fill in the gaps!

  7. Technifocal commented on Sep 14, 2016

    @Technifocal
  8. changed the title [-]Correct two-way synchronization[/-] [+]Two-way (bidirectional) synchronization[/+] on Sep 19, 2016
  9. bmlong137 commented on Oct 3, 2016

    @bmlong137

    I think a basic "2-way-sync" could be achieved with two commands. Execute "rclone sync -u " followed by "rclone sync -u ". Obviously doesn't work if both sides are changed, but what generic solution will?

  10. allanlaal commented on Oct 8, 2016

    @allanlaal
  11. nu111 commented on Mar 25, 2017

    @nu111

    It would be great to have 2-way bi-directional sync!
    This way rclone would be a great open-soruce alternative to odrive!
    Maybe we could get inspired by the MEGAsync client https://github.com/meganz/MEGAsync

  12. 107 remaining items

  13. added a commit that references this issue on Nov 1, 2021
    6210e22
  14. ivandeex commented on Nov 1, 2021

    @ivandeex
    Member
  15. typxxi commented on Nov 1, 2021

    @typxxi

    I guess it will become a present for chrismas or eastern cause I wanna avoid the risks of betas.
    thx

  16. Harvie commented on Nov 2, 2021

    @Harvie

    Merged on master. Beta released on https://beta.rclone.org

    Nice :-) Will this work in star topology? eg.: multiple devices doing bidirectional sync with shared directory on the server?
    I am looking for dropbox/googledrive replacement. So my data is available when offline and will resync later to ordinary SFTP server with no server side software.

  17. ivandeex commented on Nov 2, 2021

    @ivandeex
    Member

    @Harvie
    This ticket is about BASIC 2-way sync.
    It is closed. It will not handle advanced use cases.
    We predicted further questions about applicability to other topologies.
    Please post your question to the closest related ticket #5689
    Thank you.

  18. cjnaz commented on Nov 2, 2021

    @cjnaz
    Contributor
  19. gerardbosch commented on Feb 17, 2023

    @gerardbosch
    Contributor

    Hi there, what are the known backends that "support file modification time"? I was trying with mega.nz as it offers good amount of free storage and strong security. But after trying bisync I got the error:

    Failed to bisync: modification time support is missing on path2

    I'm wondering about free and good alternatives I can use. I liked also mega.nz as their application is very lightweight compared to something like Dropbox app that eats a lot of RAM. But on an old low spec Windows server I wanted to use rclone as the mega app does not work (requires extra stuff to be installed).

    I guess that nothing can be done with mega, at least right now. Any ideas or recommended free backend compatible with bisync? Thanks!

  20. Jwink3101 commented on Feb 18, 2023

    @Jwink3101
    Contributor

    Hi there, what are the known backends that "support file modification time"? I was trying with mega.nz as it offers good amount of free storage and strong security. But after trying bisync I got the error:

    Failed to bisync: modification time support is missing on path2

    I'm wondering about free and good alternatives I can use. I liked also mega.nz as their application is very lightweight compared to something like Dropbox app that eats a lot of RAM. But on an old low spec Windows server I wanted to use rclone as the mega app does not work (requires extra stuff to be installed).

    I guess that nothing can be done with mega, at least right now. Any ideas or recommended free backend compatible with bisync? Thanks!

    This really is a better question for the forum. But see the remote overview

    Also, I am the author of syncrclone which can support remotes that don’t support modtime. It has pros and cons. See my comparison

  21. gerardbosch commented on Feb 18, 2023

    @gerardbosch
    Contributor

    Thanks @Jwink3101 for your answer, and sorry for posting here the question that belongs to the forum –just landed here looking for the bisync error :)
    Now that I see the link to the remote overview, I think that Google Drive will perfectly meet my requirements (supports ModTime R/W), just in case it helps someone else. Not 20GB but 15GB of free storage, still enough =)

  22. added a commit that references this issue on Jul 20, 2026
    d1c22d8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions