# rClone bisync (workaround)

**URL:** <https://forum.rclone.org/t/rclone-bisync-workaround/45252>\
**Category:** Dev Discussions\
**Created:** [March 25, 2024, 1:33pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252 "2024-03-25T13:33:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebapcd](https://forum.rclone.org/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@sebapcd](https://forum.rclone.org/u/sebapcd)\
**Post date:** [March 25, 2024, 1:33pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/1 "2024-03-25T13:33:17Z")

</div>

Hello!

Because the RCLONE bisync feature is in beta and not reliable, I have made a script that uses the stable command "sync" in combination with a few flags, to mimic a seamless bidirectional syncing experience with no manual maintenance such as the "resync" command.

Here it is: [GitHub - sebaptcd/rClone-bysinc-workaround: rClone bisync feature is currently in beta and not reliable. This script uses the stable commands of the software to mimic a reliable and stable bidirectional syncing experience.](https://github.com/sebaptcd/rClone-bysinc-workaround)

I built this for myself, but I thought to also share it here in case anyone finds it useful.

Also, if you have any better options or are doing it differently, let me know!

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [March 25, 2024, 1:44pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/2 "2024-03-25T13:44:53Z")

</div>

Are you sure that you are using the latest v1.66 version of rclone? Bisync has had major overhaul recently and should be out of beta in the next version when all tests are automated:

> <https://github.com/rclone/rclone/issues/7665>
>
> \[Here\](https://github.com/rclone/rclone/issues/6685#issuecomment-1974747783) we …decided that bisync should participate in the integration tests for all backends
> 
> This will be part of giving us the confidence to take bisync out of beta.
> 
> I note that the bisync tests are likely to be troublesome here and very likely this issue will cause us to have to re-work them.
> 
> \#### How to use GitHub
> 
> \* Please use the 👍 \[reaction\](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) 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.

As of today it is already something very different in terms of reliability and functionality what it was before.

---

<div class="post-metadata">

**Author:** ![sebapcd](https://forum.rclone.org/letter_avatar_proxy/v4/letter/s/4da419/32.png) [@sebapcd](https://forum.rclone.org/u/sebapcd)\
**Post date:** [March 25, 2024, 2:13pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/3 "2024-03-25T14:13:56Z")

</div>

Hello, I just had a look!

I indeed tried bisync with an older version as I read at some point that the lead developer for this feature quit maintaining it. But I will now keep an eye on the developments!

Thank you for your reply!

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://forum.rclone.org/user_avatar/forum.rclone.org/kapitainsky/32/14450_2.png) [@kapitainsky](https://forum.rclone.org/u/kapitainsky)\
**Post date:** [March 25, 2024, 2:18pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/4 "2024-03-25T14:18:03Z")

</div>

Have a look at updated docs - it should give you good overview how many things changed.

> **[Bisync](https://rclone.org/bisync/)**
>
> Bidirectional cloud sync solution in rclone

---

<div class="post-metadata">

**Author:** ![nielash](https://forum.rclone.org/user_avatar/forum.rclone.org/nielash/32/16050_2.png) [@nielash](https://forum.rclone.org/u/nielash)\
**Post date:** [March 25, 2024, 4:44pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/5 "2024-03-25T16:44:23Z")

</div>

> [@sebapcd](#):
>
> I indeed tried bisync with an older version as I read at some point that the lead developer for this feature quit maintaining it.

This was true at one point -- but last summer I picked up where he left off and have been actively maintaining it since then. 🙂

> [@sebapcd](#):
>
> if you have any better options or are doing it differently, let me know!

It looks like your script basically does `rclone sync --update` in both directions. A fundamental problem with this approach (and really any "stateless" approach to bidirectional synchronization) is that it won't be able to properly handle deletes (including renames). Deletes do not have timestamps, so without knowing the prior state, it is impossible to say whether an absent file was deleted from one side or added to the other. As a result, your script will be asymmetrical -- whether an absent file is interpreted as "new" or "deleted" will depend on whichever side happens to be the source first in the sync order.

An additional problem is that `--update` makes the assumption that "newer" always equals "better". For example, it would never be possible to restore from a backup with an older timestamp, as it would just get overwritten on the next sync. It also makes the assumption that the backend has `modtime` support, which is not true for all rclone backends.

Bisync overcomes these kinds of problems by keeping a prior "state" snapshot and reconciling changes with the ["Dual Shadow"](https://rclone.org/bisync/#references) method. (`bisync` also uses `sync` under the hood, by the way.)

As @kapitainsky mentioned, bisync received a [huge update](https://rclone.org/bisync/#changelog) in `v1.66` and is much more stable compared to older versions. The integration tests will provide a way of officially verifying that going forward. I'd encourage you to give it a try, and as always, if you find any suspected bugs, please report them so we can get them fixed! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [May 25, 2024, 12:45pm UTC](https://forum.rclone.org/t/rclone-bisync-workaround/45252/6 "2024-05-25T12:45:13Z")

</div>

Closed on May 25, 2024, 12:45pm UTC

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