Bisync
Two-way sync of a work folder
Keeps a folder on this computer and on Google Drive alike, and is safe to run on a schedule.
- Google Drive
- Laptops and NAS
Type your own: the command below follows.
rclone bisync ~/Documents gdrive:Documents \ --conflict-resolve newer \ --resilient \ --recover \ --max-lock 2m \ --checkers 8 \ --transfers 4 \ -PAdd to Rclone UI opens it in the app’s Templates window, ready to save. No app yet? Download Rclone UI, free.
What it does
Keeps two places alike, both ways. What changed on either side is copied to the other. rclone’s docs for bisync
- Run it once with
--resyncadded: the first bisync of two folders needs it. - In Rclone UI, a watcher does the same thing every minute, without a schedule.
Each flag
- --conflict-resolve newer
- When a file changed on both sides, which version wins. With newer, the more recent one wins, and the other is kept too, renamed with a number.rclone’s default: none, both are kept renamed
- --resilient
- When a run fails in a way that can fix itself, the next run tries again, instead of refusing to run until you start over with
--resync. - --recover
- When a run is cut short, for example by a shutdown, the next run picks up where it stopped.
- --max-lock 2m
- A run leaves a lock file while it works. One older than this is taken as left over from a run that crashed, so it doesn’t block the next run.rclone’s default: 0, the lock never expires
- --checkers 8
- How many files are compared at the same time, to find the ones that need copying.rclone’s default: 8
- --transfers 4
- How many files are copied at the same time.rclone’s default: 4
- -P
- Shows the progress in the terminal while the command runs. Rclone UI shows its own, in History.