Replies: 1 comment 2 replies
|
To achieve this you can add 2 repos to a Vykar config file and back up to both. If you need to sync a raw repo instead you can use something like rclone or rsync. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Repository-to-repository replication / copy
Would it be possible to add a way to copy/synchronize an existing Vykar repository to another repository, similar to Duplicacy's copy command?
A motivating use case would be:
The important aspect is that the second repository is not available all the time. The NAS repository is always available and receives regular backups, while the USB/off-site repository might only be connected once a week or once a month.
Configuring both as regular Vykar backup repositories therefore isn't quite the solution: when the second repository is offline, it cannot receive the new snapshots. When it becomes available again, I'd want to bring it up to date by copying the existing repository history, rather than running a new backup from the original files. Otherwise the two repositories would naturally contain different amounts of backup history.
Ideally, the operation would efficiently transfer the existing snapshots and only the data missing from the destination, and could be run again whenever the second location becomes available.
One aspect that seems particularly interesting is that Vykar repositories currently have their own encryption keys. For this use case, I would imagine something more like a repository clone: the destination could share the source repository's encryption identity/key, while still being a separate repository whose snapshots could potentially diverge over time — for example, allowing snapshots to be pruned independently. Whether this should be a one-way replication/copy or eventually support some form of synchronization could be left open for discussion.
I found Discussion #144, which is related, but that discussion is about creating a 1:1 mirror of the source files without snapshots. I'm interested in the somewhat different use case of replicating an existing Vykar repository, including its snapshot history, to another repository.
Is this something that could fit into Vykar's design, or has repository-to-repository replication already been considered?
All reactions