digint / btrbk

Tool for creating snapshots and remote backups of btrfs subvolumes
https://digint.ch/btrbk/
GNU General Public License v3.0
1.64k stars 120 forks source link

no missing backups found #477

Open cmaurand opened 2 years ago

cmaurand commented 2 years ago

I have a 3 step 2 server setup. the first server takes backups from everywhere by rsync onto btrfs volume except for one. This the first one where source file system is btrfs and btrbk is pulling snapshots directly from it. This machine use to be backed up by this machine in the past, but a different instance of btrbk. I get it that snapshots are not recursive. The second server simply needs to reach into middle` machine (the one taking all of the backups) and grab the snapshots from the backup-snapshots folder. entire system is not perfect because the actual btrfs source has a much longer backup chain in its snapshots folder than I'm receiving.

for` consistency it is set up as such

The source folder is /mnt/Data/Files/backups

volume /mnt/Data/Files/backups/client subvolume server.client.com

within that subvolume we find the following list of snapshots have been retrieved. I've verified that all of their content is correct. the list was alphabetical, I reduced the number of columns

tc.20220522 home.20220522
ispconfig.20220522 localscripts.20220522
mysql.20220523 vmail.20220523
www.20220523etc.20220523
home.20220523 ispconfig.20220523 localscripts.20220524 mysql.20220524
vmail.20220524 www.20220524 etc.20220524 home.20220524 ispconfig.20220524 mysql.20220522
vmail.20220522 www.20220522

The first stage is working (sort of) and I've gotten, and have been getting great snapshots from server.client.com.

The second part of this is where it falls down. I have it set up to simply copy the snapshots over which I could do manually in a bash script easily enough.

snapshot_create no snapshot_preserve_min all target send-receive /mnt/Data/Files/backup-snapshots/client/server.client.com

The target volume is empty. When I run btrbk against that configuration, I get "no action" no missing backup found. Good one. I see a bunch of missing backups. If I were issue

find /mnt/Data/Files/backups/clien/server.client.com -type -maxdepth 1 -exec btrfs send '[]' | btrfs receive /mnt/Data/Files/backup-snapshots/ . '{}' \;

I'm reasonably sure they'd all get sent. I simply want the snapshots copied from the source to the destination.

/mnt/btrfs_pool/snapshots on the source server is full of data. The destinations are empty. nothing is being transferred