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...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Backup a partition on a BSD box; | Backup a partition on a BSD box; | ||
− | + | <pre> | |
dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz | dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz | ||
− | + | </pre> | |
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; | ||
+ | <pre> | ||
gunzip -c usr.dump.gz | restore -if - | gunzip -c usr.dump.gz | restore -if - | ||
+ | </pre> |
Latest 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 -