View Single Post
  #2   (View Single Post)  
Old 31st August 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

On a secure network:
  1. Boot bsd.rd
  2. Recreate MBR
  3. Recreate Disklabel
  4. Start network
For each filesystem:
  1. newfs(8)
  2. mount(8)
  3. cd(1) into filesystem
  4. make a temp directory for restore (/tmp isn't big enough)
  5. set TMPDIR to point to that temp directory
  6. Pipe backup file into restore(8)
  7. remove the temp directory and the restoresymtable file in the top level directory.
On an insecure network, you need SSH, which is not included in bsd.rd. Either install the OS and reboot before restoring, or use live media.
Reply With Quote