All of lore.kernel.org
 help / color / mirror / Atom feed
* Move data and mount point to subvolume
@ 2018-09-16 11:14 Rory Campbell-Lange
  2018-09-16 12:37 ` Hans van Kranenburg
  2018-09-16 18:04 ` Chris Murphy
  0 siblings, 2 replies; 12+ messages in thread
From: Rory Campbell-Lange @ 2018-09-16 11:14 UTC (permalink / raw)
  To: linux-btrfs

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-09-19  0:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-16 11:14 Move data and mount point to subvolume Rory Campbell-Lange
2018-09-16 12:37 ` Hans van Kranenburg
2018-09-16 12:50   ` Hans van Kranenburg
2018-09-16 18:03     ` Rory Campbell-Lange
2018-09-16 18:13       ` Chris Murphy
2018-09-16 18:40         ` Rory Campbell-Lange
2018-09-16 19:44           ` Chris Murphy
2018-09-16 20:34             ` Rory Campbell-Lange
2018-09-18 18:10     ` Marc Joliet
2018-09-18 18:33       ` Hans van Kranenburg
2018-09-16 17:23   ` Rory Campbell-Lange
2018-09-16 18:04 ` Chris Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.