* root backup-reformat-restore @ 2016-11-18 0:38 Marcus Sundman 2016-11-18 0:52 ` Hugo Mills 0 siblings, 1 reply; 4+ messages in thread From: Marcus Sundman @ 2016-11-18 0:38 UTC (permalink / raw) To: linux-btrfs 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)? Thanks! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: root backup-reformat-restore 2016-11-18 0:38 root backup-reformat-restore Marcus Sundman @ 2016-11-18 0:52 ` Hugo Mills 2016-11-18 2:06 ` Marcus Sundman 0 siblings, 1 reply; 4+ messages in thread From: Hugo Mills @ 2016-11-18 0:52 UTC (permalink / raw) To: Marcus Sundman; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1272 bytes --] 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 | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: root backup-reformat-restore 2016-11-18 0:52 ` Hugo Mills @ 2016-11-18 2:06 ` Marcus Sundman 2016-11-18 10:01 ` Hugo Mills 0 siblings, 1 reply; 4+ messages in thread From: Marcus Sundman @ 2016-11-18 2:06 UTC (permalink / raw) To: Hugo Mills; +Cc: linux-btrfs On 18.11.2016 02:52, Hugo Mills wrote: > 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 It's the same partition, so I probably won't have the new FS there at the same time. > - else, if you want to replace the old FS with the new > - tar to a file elsewhere, and untar later Can tar really preserve all special files' attributes? (I have separate partitions for /boot and /home, but the rest is in /) Thanks! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: root backup-reformat-restore 2016-11-18 2:06 ` Marcus Sundman @ 2016-11-18 10:01 ` Hugo Mills 0 siblings, 0 replies; 4+ messages in thread From: Hugo Mills @ 2016-11-18 10:01 UTC (permalink / raw) To: Marcus Sundman; +Cc: linux-btrfs [-- Attachment #1: Type: text/plain, Size: 1522 bytes --] On Fri, Nov 18, 2016 at 04:06:22AM +0200, Marcus Sundman wrote: > On 18.11.2016 02:52, Hugo Mills wrote: > >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 > > It's the same partition, so I probably won't have the new FS there > at the same time. > > > - else, if you want to replace the old FS with the new > > - tar to a file elsewhere, and untar later > > Can tar really preserve all special files' attributes? (I have > separate partitions for /boot and /home, but the rest is in /) Yes, I've used it for moving / to a different machine before. Take a look through the options and pick all the ones that look like they're dealing with attributes. :) Hugo. -- Hugo Mills | Anyone who claims their cryptographic protocol is hugo@... carfax.org.uk | secure is either a genius or a fool. Given the http://carfax.org.uk/ | genius/fool ratio for our species, the odds aren't PGP: E2AB1DE4 | good. Bruce Schneier [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 836 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-11-18 10:01 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-11-18 0:38 root backup-reformat-restore Marcus Sundman 2016-11-18 0:52 ` Hugo Mills 2016-11-18 2:06 ` Marcus Sundman 2016-11-18 10:01 ` Hugo Mills
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).