View Single Post
  #8   (View Single Post)  
Old 18th March 2011
Beastie Beastie is offline
Daemonology student
 
Join Date: Jan 2009
Location: /dev/earth0
Posts: 335
Default

Quote:
Originally Posted by Broodjegehaktmetmayo View Post
Sofar after reading here and over in the FreeBSD forum I understand that I need to 'dump' each partition/filesystem/slice separately, and on restoring I need to first format and label each partition/filesystem/slice separately.
Read dump(8) and restore(8). These tools dump and restore the filesystems contained in partitions, not the entire slices. So you have to run dump on each partition you want to back up and, of course, specify a different dump file name for each one. When/if you need to restore a filesystem, simply newfs the partition, mount it, cd to the mountpoint and run restore inside it.

Quote:
Originally Posted by Broodjegehaktmetmayo View Post
Does one need to create the each partition/filesystem/slice exactly the same size as the originally were (not smaller sounds logically, but bigger is possible?)
The new partition can be of any size. It can even be smaller than the old one, as long as it's sensibly bigger than the total space used by your files. dump files are not exact, block-by-block copies of partitions. They only store the used portions of filesystems and are therefore (more or less) as big as what's shown in the Used column in df -h.
__________________
May the source be with you!
Reply With Quote