Difference between revisions of "Backing up the BSD's"
Jump to navigation
Jump to search
(Created page with "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 comman...") |
|||
Line 1: | Line 1: | ||
Backup a partition on a BSD box; | Backup a partition on a BSD box; | ||
− | + | <code> | |
dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz | dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz | ||
− | + | </code> | |
Line 9: | Line 9: | ||
You can walk a dump file and look at it's contents by running the command; | You can walk a dump file and look at it's contents by running the command; | ||
+ | <code> | ||
gunzip -c usr.dump.gz | restore -if - | gunzip -c usr.dump.gz | restore -if - | ||
+ | </code> |
Revision as of 06:32, 6 June 2019
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 -