Thread: Auto backup
View Single Post
  #7   (View Single Post)  
Old 19th August 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Default Restoring

What would be the correct way to then restore a backup made with this?
Code:
dump -0Lauf - /usr | bzip2 >/mtn/usb/usr.ad0s1f.dump.bz2
If I am reading the man page correctly, to restore into a new partiton, it would be,
Code:
newfs /dev/ad0s1f
mount /dev/ad0s1f /usr
cd /usr
bzcat usr.ad0s1f.dump.bz2 | restore -rf -
Does this look right?
__________________
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
Reply With Quote