Back up btrfs snapshot to NFS-mounted partition
I have a server running on an ext4 fs. It has a HD with a btrfs-formatted partition, /laptop. /laptop is exported r/w to the local network.
I have a laptop (surprise) which is *all* btrfs and mounts the exported filesystem as /backup. So far, so good.
Since both partitions (/ and /backup) are btrfs, I was hoping it would be possible to easily do backups with btrfs' superb snapshotting capabilities. But when trying to send/receive, I get the following error:
linux:/ btrfs send /home/BACKUP | btrfs receive /backup/home
At subvol /home/BACKUP
ERROR: /backup/home doesn't belong to btrfs mount point
ERROR: failed to dump stream: Broken pipe
So I think maybe I have to first create the subvolume on the server:
linux:/ # btrfs subvolume create /backup/home
ERROR: not a btrfs filesystem: /backup
Being relatively new to both NFS and btrfs, I'm a bit overwhelmed by the intricacies of them working (or not) together. Any hints as to what I'm doing wrong?
Last edited by tmst; 11-28-2016 at 12:24 AM.
|