Hi, it's Hai

Software Engineering, Game Development, Storytelling, and more!


Journal


Youtube


Twitter


GitHub


GitLab


Discord


© 2023. All rights reserved.

Hi, it's Hai

Software Engineering, Game Development, Storytelling, and more!

Two-way data synchronization with Rclone

Posted on August 8, 2023

What is two-way data synchronization

Two-way data sync between the cloud and a local machine refers to the synchronization of data between a cloud-based storage or service and a device or computer located locally. It enables seamless and automatic updates between the cloud and the local machine, ensuring that any changes made in one location are reflected in the other. This synchronization allows users to access and work with their data both online and offline, with changes being synced once a connection is established. It provides a convenient and consistent experience, ensuring that the data remains up to date across different environments, whether it's stored on the cloud or on a local machine.

Two-way data synchronization with Rclone

Rclone is a command-line tool used for managing and syncing data across various cloud storage providers and local filesystems. It supports a wide range of cloud storage platforms, including popular services like Google Drive, Dropbox, Amazon S3, Microsoft OneDrive, and many others. With Rclone, users can perform operations such as copying, syncing, and transferring files and directories between different storage locations. It offers features like encryption, deduplication, and bandwidth throttling, making it a versatile tool for data management and backup purposes. Rclone is known for its cross-platform compatibility and efficient performance, making it a popular choice for individuals and organizations looking to manage their data across multiple cloud storage providers.

One major drawback is that rclone does not have a bisync solution at the moment. However, there is a solution that maybe somewhat tricky.

Begin by simply mounting a cloud storage you have configured:

rclone mount remotecloud: /mnt/remotecloud

Then sync the mounted folder with another local folder:

rsync [flags] /mnt/remotecloud /local/directory rsync [flags] /local/directory /mnt/remotecloud