How to move data between two btrfs subvolumes

Dec 30, 2015 00:00 · 55 words · 1 minute read Linux Btrfs

I moved a big chunk of data between two subvolumes on a btrfs volume. Well… I forgot about the btrfs feature and used the standard mv command. It took lots of time. So… a better way for this operation on a btrfs volume is to use reflink:

cp -pr --reflink=always subvol1/dir subvol2/dir
rm -rf subvol1/dir