Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backup of backups #594

Open
valodiadeseynes opened this issue Jul 21, 2024 · 1 comment
Open

Backup of backups #594

valodiadeseynes opened this issue Jul 21, 2024 · 1 comment

Comments

@valodiadeseynes
Copy link

Hi,

This issue may be related to #560 .

Let's say we have three servers : A, B and C.
Server A is production and has its btrfs pool on /mnt/data.
Server B uses btrbk to backup subvolume /mnt/data/production from Server A via SSH as per example "Fileserver-initiated Backups from Several Hosts".

Can btrbk be used on Server C to copy the backups from Server B ?

As I understand in the man pages I could run the manual command :
btrbk archive source destination

Although it doesn't seem to work if either source or destination is fetched via SSH :

ERROR: Bad argument: not a subvolume declaration: ssh://serverb/mysnapshots

@simonwiles
Copy link

I do exactly this. On Server C I execute something like:

btrbk --progress archive <server-b-ip>:/btrbk-backups $LOCAL_TARGET_DIR/btrbk-backups

One issue with this is that it will transfer snapshots from Server B but will not replicate snapshot removals -- i.e. if there is a retention policy on Server B, you have to implement that again on Server C by passing a config file for the purpose:

btrbk --config=server-b-archive.config --progress archive <server-b-ip>:/btrbk-backups $LOCAL_TARGET_DIR/btrbk-backups

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants