GreyGeek Okay, after changing the HDD IDs to reflect mine, and commenting out the mounting line for the external HDD (as already explained, I accept mounting when it is plugged in), I ran the script. The results:
The unmount: /backup: not mounted is my bad. I didn't change the eval 'umount /backup' line.
As to the to ERROR lines. Given my setup, what do I make of them?
The mount: /mnt: error is my bad. Didn't write out the UUID correctly.
paul@barley-cat:~$ sudo -i
root@barley-cat:~# cd /
root@barley-cat:/# /make_snapshot.sh
Mounting drives
mount: /mnt: special device /dev/disk/by-uuid/67fab1ac-b53c-4e10-9faf-f9a434156e does not exist.
Making today's snapshot
Create a readonly snapshot of '/mnt/@' in '/mnt/snapshots/@202203041643'
Finding previous snapshot as parent
Attempting incremental backup
btrfs send -p /mnt/snapshots/@202203041643 /mnt/snapshots/@home202203032257 | btrfs receive /backup
At subvol /mnt/snapshots/@home202203032257
At snapshot @home202203032257
ERROR: parent subvol is not reachable from inside the root subvol
Delete subvolume (commit): '/mnt/snapshots/@202203032257'
ERROR: Not a Btrfs subvolume: Invalid argument
Snapshots completed, oldest snapshots deleted
umount: /backup: not mounted.
Drives unmounted and 3 syncs done
root@barley-cat:/#
root@barley-cat:~# cd /
root@barley-cat:/# /make_snapshot.sh
Mounting drives
mount: /mnt: special device /dev/disk/by-uuid/67fab1ac-b53c-4e10-9faf-f9a434156e does not exist.
Making today's snapshot
Create a readonly snapshot of '/mnt/@' in '/mnt/snapshots/@202203041643'
Finding previous snapshot as parent
Attempting incremental backup
btrfs send -p /mnt/snapshots/@202203041643 /mnt/snapshots/@home202203032257 | btrfs receive /backup
At subvol /mnt/snapshots/@home202203032257
At snapshot @home202203032257
ERROR: parent subvol is not reachable from inside the root subvol
Delete subvolume (commit): '/mnt/snapshots/@202203032257'
ERROR: Not a Btrfs subvolume: Invalid argument
Snapshots completed, oldest snapshots deleted
umount: /backup: not mounted.
Drives unmounted and 3 syncs done
root@barley-cat:/#
As to the to ERROR lines. Given my setup, what do I make of them?
The mount: /mnt: error is my bad. Didn't write out the UUID correctly.
Comment