Hi
We have a backup machine that has been happily running its backup
partitions on btrfs (on top of a luks encrypted disks) for a few years.
Our backup partition is on /bkp which is a top level subvolume.
Data, RAID1: total=2.52TiB, used=1.36TiB
There are no other subvolumes.
We have /bkp with /bkp/backup in it. We would like to mount /bkp/backup
at /bkp instead. Note that /bkp/backup has a lot of hardlinked files.
I guess I could do
cd /bkp/backup
mv * ../
rmdir backup
But would it also be possible to do something like
cd /bkp
btrfs subvol create backup-subvol
mv /bkp/backup/* /bkp/backup-subvol
... then mount /bkp/backup-subvol at /bkp
Would this second approach work, and preserve hardlinks?
The machine is btrfs-progs v4.7.3 Linux 4.9.0-8-amd64 on Debian. The
coreutils version is 8.26-3.
Thanks for any comments
Rory