Difference between revisions of "Backing up the BSD's"

From WTFwiki
Jump to navigation Jump to search
 
Line 1: Line 1:
 
Backup a partition on a BSD box;
 
Backup a partition on a BSD box;
<code>
+
<pre>
 
dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz
 
dump -0uan -f - /usr | gzip -2 > /mnt/usr.dump.gz
</code>
+
</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;
  
<code>
+
<pre>
 
gunzip -c usr.dump.gz | restore -if -
 
gunzip -c usr.dump.gz | restore -if -
</code>
+
</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 -