Hitchhiker's Guide to Openbsd


Download 1.27 Mb.
Pdf ko'rish
bet220/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   216   217   218   219   220   221   222   223   ...   258
Bog'liq
obsd-faq49

Backing up to tape:
Backing up to tape requires knowledge of where your file systems are mounted. You can determine how your 
filesystems are mounted using the 
mount(8)
 command at your shell prompt. You should get output similar to this: 
mount
http://www.openbsd.org/faq/faq14.html (18 of 34)9/4/2011 10:02:25 AM


14 - Disk Setup
/dev/sd0a on / type ffs (local)
/dev/sd0h on /usr type ffs (local)
In this example, the root (/) filesystem resides physically on sd0a which indicates SCSI fixed disk 0, partition a. 
The /usr filesystem resides on sd0h, which indicates SCSI fixed disk 0, partition h. 
Another example of a more advanced mount table might be: 
mount
/dev/sd0a on / type ffs (local)
/dev/sd0d on /var type ffs (local)
/dev/sd0e on /home type ffs (local)
/dev/sd0h on /usr type ffs (local)
In this more advanced example, the root (/) filesystem resides physically on sd0a. The /var filesystem resides on 
sd0d, the /home filesystem on sd0e and finally /usr on sd0h. 
To backup your machine you will need to feed dump the name of each fixed disk partition. Here is an example of 
the commands needed to backup the simpler mount table listed above: 
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0a
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0h
mt -f /dev/rst0 rewind
For the more advanced mount table example, you would use something similar to: 
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0a
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0d
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0e
/sbin/dump -0au -f /dev/nrst0 /dev/rsd0h
mt -f /dev/rst0 rewind
You can review the 
dump(8)
man page to learn exactly what each command line switch does. Here is a brief 
description of the parameters used above: 


Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   216   217   218   219   220   221   222   223   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2025
ma'muriyatiga murojaat qiling