Support for Borg 2 borg transfer
operation
#879
Loading…
x
Reference in New Issue
Block a user
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 transfer
command 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 transfer
is useful.I might be missing something, but
borgmatic transfer
is 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
transfer
might be slightly better than a bit-for-bit sync, but may share some of the downsides as well.I saw documentation for
borgmatic transfer
which 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
transfer
as part of regular backups rather than the user runningtransfer
manually 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.borg
to get populated by a traditional borgmaticcreate
, whiletarget.borg
would get populated by atransfer
fromsource.borg
. Presumably though it would only transfer the latest archive?