Is `sync-to` "persistent" or do I need to run it periodically?

title says it all ;-).

I have a repository on the local disk and I want to offload it to the cloud for redundancy/house explodes protection.

If I run kopia repository sync-to --parallel=10 --delete rclone --remote-path=<rclone-target>:<directory> once then will it be “remembered” so subsequent changes in the local repository are mirrored in the remote repository?

The language in Synchronization | Kopia suggests it does, but after I did the original kopia ... sync-to ... I then added a new snapshot to the repository, then waited a few minutes (it was only 10KB or so) and the remote directory hadn’t changed.

I ran the kopia .. sync-to ... again and it copied some new blobs.

This suggests either the sync-to is a one-off operation, in which case the language “Kopia v0.6.0 adds support for automatic repository replication, which enables incremental copies of the currently connected repository to a separate storage location.” is misleading, or the syncing is asynchronous, in which case, how often does it sync?

Thanks! (No snark about the language intended!)

You’re right - you’d have to run sync-to jobs repeatedly, there’s no automatic capability regarding that.

1 Like