btrbk
btrbk copied to clipboard
Making Backup of offsite machine to a usb drive on that same machine
Hello,
I have two raspberry PIs with external HDDs and one is in an other location. I'm making backups of the internal drives to each other PI's externel HDD. That's working so far, btrbk is running from the local PI. Now I thought it would be good to backup the systems also to their local external HDD, but transferring the remote source to the remote target seems to be done at 'internet' speed. Here is a short graph:
In my config I have the two internal volumes each with two targets. The targets 'local to remote' and 'remote to local' have rate_limit set to go easy on my upload/download rate.
volume /.btrRoot/btrSys
target /media/backup/local/system
target ssh://my.domain/media/backup/local/system
rate_limit 1m
subvolume @
snapshot_name lRoot
subvolume @home
snapshot_name lHome
volume ssh://my.domain/.btrRoot/btrSys
target /media/backup/remote/system
rate_limit 4m
target ssh://my.domain/media/backup/remote/system
subvolume @
snapshot_name rRoot
subvolume @home
snapshot_name rHome
I'm using btrbk version 0.31.2 Is this a problem in my config or does btrbk opens two seperate ssh sessions for send/receive?
Maybe it is more efficient to run btrbk on each machine individually and just let them pull the snapshots from each other? This is really just a reminder for me to try that...
Sorry for the late reply, was very busy lately...
Yes, remote-to-remote configs open two ssh sessions. while this works, it's obviously very slow and not recommended.
I would suggest to create local snapshots and backups with a cron job running locally, and for the remote backups use btrbk resume
(will pick up snapshots created in cron job).