Hi,
I just installed 11REL successfully using this how-to and have done all the configurations and ports/packages installations I want.
Now, I'd like to back it up and use it for another install to different-sized disks (via the same how-to) which will all be used on the same system hardware, but I have some really basic questions about how to use dump().
I want to make sure I get everything with config data including e.g. /boot and /etc. I think this comes down to whether to
From what I've read it seems dump() does not automatically copy everything (?). Anything I want to avoid dumping I went through the filesystem and set
Here's my disk layout info-
It seems the command I want is something like-
Thanks for the help,
-bg
I just installed 11REL successfully using this how-to and have done all the configurations and ports/packages installations I want.
Now, I'd like to back it up and use it for another install to different-sized disks (via the same how-to) which will all be used on the same system hardware, but I have some really basic questions about how to use dump().
I want to make sure I get everything with config data including e.g. /boot and /etc. I think this comes down to whether to
dump
the whole disk or individual slices and what exactly should be backed up to save all config data (e.g. /etc/rc.conf and /boot/loader.conf) and installed ports/packages.From what I've read it seems dump() does not automatically copy everything (?). Anything I want to avoid dumping I went through the filesystem and set
chflags nodump
, such as /usr/ports and /var (any advice on what to exclude is much obliged). I'm also confused about dumping the slices I have here (as opposed to partitions, which is what I've seen done in examples).Here's my disk layout info-
df -h
Code:
Filesystem Size Used Avail Capacity Mounted on
/dev/label/eee.elia 744M 183M 501M 27% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/label/eee.elid 1.9G 271M 1.5G 15% /var
/dev/label/eee.elie 992M 8.1M 904M 1% /tmp
/dev/label/eee.elif 24G 5.6G 17G 25% /usr
/dev/label/eee.elig 35G 73M 32G 0% /home
procfs 4.0K 4.0K 0B 100% /proc
gpart show
Code:
=> 63 145226049 ada0 MBR (69G)
63 1 - free - (512B)
64 1572864 1 freebsd [active] (768M)
1572928 143653176 2 freebsd (68G)
145226104 8 - free - (4.0K)
=> 0 1572864 ada0s1 BSD (768M)
0 1572856 1 freebsd-ufs (768M)
1572856 8 - free - (4.0K)
=> 0 17956646 label/eee.eli BSD (68G)
0 196608 1 freebsd-ufs (768M)
196608 1048576 2 freebsd-swap (4.0G)
1245184 524288 4 freebsd-ufs (2.0G)
1769472 262144 5 freebsd-ufs (1.0G)
2031616 6553600 6 freebsd-ufs (25G)
8585216 9371430 7 freebsd-ufs (36G)
mount
Code:
/dev/label/eee.elia on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
/dev/label/eee.elid on /var (ufs, local, journaled soft-updates)
/dev/label/eee.elie on /tmp (ufs, local, noatime, journaled soft-updates)
/dev/label/eee.elif on /usr (ufs, local, journaled soft-updates)
/dev/label/eee.elig on /home (ufs, local, journaled soft-updates)
procfs on /proc (procfs, local)
It seems the command I want is something like-
dump -0Lauf - <device> | pigz > backup_file.tar.gz
Thanks for the help,
-bg