Support for Borg 2 borg transfer operation #879
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#879
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'd like to do and why
(I understand that this will likely be low priority until Borg 2 comes out)
It would be nice to have support for the
borg transfercommand between related repositories, as an alternate method of backing up to multiple repositories. Instead of doing similar backups to multiple repositories, as is currently required, this could just do one backup, and transfer the archive between repositories.Other notes / implementation ideas
This would help with consistently between archives (see eg. #846), as well as many other situations where
borg transferis useful.I might be missing something, but
borgmatic transferis already implemented (since borgmatic 1.7.0). Does it not work for the related repository use case?Just be aware of the caveats here: https://borgbackup.readthedocs.io/en/stable/faq.html#can-i-copy-or-synchronize-my-repo-to-another-location ... A
transfermight be slightly better than a bit-for-bit sync, but may share some of the downsides as well.I saw documentation for
borgmatic transferwhich seems similar to defaultborg transfer, but not for putting it in the config files to run automatically. Maybe I just missed something?Oh, no, you didn't miss anything. I misunderstood your use case! You want borgmatic to run the
transferas part of regular backups rather than the user runningtransfermanually as a one-off.I think I agree that it sounds like something that could be useful. So I guess my question is how would this be configured? Maybe something like this?
That would cause
source.borgto get populated by a traditional borgmaticcreate, whiletarget.borgwould get populated by atransferfromsource.borg. Presumably though it would only transfer the latest archive?