Backing up the BSD's

From WTFwiki
Jump to navigation Jump to search

Backup a partition on a BSD box;

dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz


Restore a file

You can walk a dump file and look at it's contents by running the command;

gunzip -c usr.dump.gz | restore -if -