On Fri, Nov 18, 2016 at 02:38:25AM +0200, Marcus Sundman wrote: > The FAQ says that "the best solution for small devices (under about > 16 GB) is to reformat the FS with the --mixed option to mkfs.btrfs". > > OK. Does anyone have any good suggestions for doing that with an > existing / partition (which has special files and whatnot)? > > I assume a backup-restore cycle is needed, but with which program(s)?
- If you don't have (or don't care about) any snapshots, then - if you can mount both the old and the new FS at the same time - mv - else, if you want to replace the old FS with the new - tar to a file elsewhere, and untar later - else, if you care about the snapshots - if you don't care about continuing btrfs send/receive backups to somewhere else - btrfs send/receive with -c (*) - if you want to continue using btrfs send -p incremental backups after the migration - cry, because you can't (*) For subvols S1, S2, S3, ...: btrfs send S1; btrfs send -c S1 S2; btrfs send -c S1 -c S2 S3; btrfs send -c S1 -c S2 -c S3 S4; etc... Hugo. -- Hugo Mills | Great films about cricket: The Umpire Strikes Back hugo@... carfax.org.uk | http://carfax.org.uk/ | PGP: E2AB1DE4 |
signature.asc
Description: Digital signature