How to move data between two btrfs subvolumes

Dec 30, 2015 00:00 · 53 words · 1 minute read Linux btrfs

I have moved big chunk of data between two of subvol on btrfs volume. Well… I forgot to use btrfs feature and used standard mv command. It took lots of time. So… more optimal way for this operation on btrfs volume is to use reflink:

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