Example--Performing an Incremental Backup of root (/)
The following example shows how to do an incremental backup of the root
(/) file system in single-user mode. The following ufsdump options are included:
9 specifies a 9 level
dump (or an incremental backup).
u specifies that the /etc/dumpdates file is updated with the date of this backup.
c identifies a cartridge tape device.
f /dev/rmt/0 identifies the tape device.
/ is the file system being backed up.
# init 0
ok boot -s
.
.
.
Rebooting with command: boot -s
SunOS Release 5.9 Generic May 2002
Copyright 1983-2003 Sun Microsystems, Inc. All rights reserved.
.
.
.
# ufsdump 9ucf /dev/rmt/0 /
DUMP: Date of this level 9 dump: Mon Oct 06 12:36:10 2003
DUMP: Date of last level 0 dump: Wed Oct 08 10:12:13 2003
DUMP: Dumping /dev/rdsk/c0t0d0s0 (starbug:/) to /dev/rmt/0.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 63 Kilobyte records
DUMP: Estimated 335844 blocks (163.99MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 335410 blocks (163.77MB) on 1 volume at 893 KB/sec
DUMP: DUMP IS DONE
DUMP: Level 9 dump on Mon Oct 06 12:36:10 2003
# ufsrestore tf /dev/rmt/0
2 .
3 ./lost+found
5696 ./usr
11392 ./var
17088 ./export
22784 ./export/home
28480 ./opt
5697 ./etc
11393 ./etc/default
11394 ./etc/default/sys-suspend
11429 ./etc/default/cron
11430 ./etc/default/devfsadm
11431 ./etc/default/dhcpagent
11432 ./etc/default/fs
11433 ./etc/default/inetinit
11434 ./etc/default/kbd
11435 ./etc/default/nfslogd
11436 ./etc/default/passwd
11437 ./etc/default/tar
.
.
.
|
Example--Performing a Full Backup of a Home Directory
The following example shows how to do a full backup of the /export/home/kryten home directory. The following ufsdump options are included:
0 specifies that this is a 0
level dump (or a full backup)
u specifies that the /etc/dumpdates file is updated with the date of this backup
c identifies a cartridge tape device
f /dev/rmt/0 identifies the tape device
/export/home/kryten is the directory being
backed up
# ufsdump 0ucf /dev/rmt/0 /export/home/kryten
DUMP: Date of this level 0 dump: Tue Oct 07 08:41:41 2003
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rdsk/c0t0d0s0 (starbug:/) to /dev/rmt/0.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 63 Kilobyte records
DUMP: Estimated 470 blocks (235KB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 376 blocks (188KB) on 1 volume at 1205 KB/sec
DUMP: DUMP IS DONE
# ufsrestore tf /dev/rmt/0
2 .
5 ./export
6 ./export/home
80799 ./export/home/kryten
80800 ./export/home/kryten/filea
80801 ./export/home/kryten/fileb
80802 ./export/home/kryten/filec
80803 ./export/home/kryten/letters
80804 ./export/home/kryten/letters/letter1
80805 ./export/home/kryten/letters/letter2
80806 ./export/home/kryten/letters/letter3
80807 ./export/home/kryten/reports
80808 ./export/home/kryten/reports/reportA
80809 ./export/home/kryten/reports/reportB
80810 ./export/home/kryten/reports/reportC
#
|
|