| 
 | |||
| 1. Managing Removable Media (Overview) 2. Managing Removable Media (Tasks) 3. Accessing Removable Media (Tasks) 4. Writing CDs and DVDs (Tasks) 5. Managing Devices (Overview/Tasks) 6. Dynamically Configuring Devices (Tasks) 7. Using USB Devices (Overview) 9. Using InfiniBand Devices (Overview/Tasks) 11. Administering Disks (Tasks) 12. SPARC: Adding a Disk (Tasks) 13. x86: Adding a Disk (Tasks) 14. Configuring Solaris iSCSI Targets and Initiators (Tasks) 15. Configuring and Managing the Solaris Internet Storage Name Service (iSNS) 16. The format Utility (Reference) 17. Managing File Systems (Overview) 18. Creating UFS, TMPFS, and LOFS File Systems (Tasks) 19. Mounting and Unmounting File Systems (Tasks) 20. Using The CacheFS File System (Tasks) 21. Configuring Additional Swap Space (Tasks) 22. Checking UFS File System Consistency (Tasks) 23. UFS File System (Reference) 24. Backing Up and Restoring File Systems (Overview) 25. Backing Up Files and File Systems (Tasks) Backing Up Files and File System (Task Map) Preparing for File System Backups How to Determine the Number of Tapes Needed for a Full Backup 26. Using UFS Snapshots (Tasks) 27. Restoring Files and File Systems (Tasks) 28. UFS Backup and Restore Commands (Reference) 29. Copying UFS Files and File Systems (Tasks) | Backing Up a File SystemThe following are general guidelines for performing backups: 
 How to Back Up a File System to TapeThe following are general steps for backing up file systems by using the ufsdump command. The examples show specific uses of options and arguments. 
 The following example shows how to do a full backup of the root (/) file system. The system in this example is brought to single-user mode before the backup. The following ufsdump options are included: 
 For example: # init 0
ok boot -s
# ufsdump 0ucf /dev/rmt/0 /
  DUMP: Date of this level 0 dump: Wed Jul 28 16:13:52 2004
  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 363468 blocks (177.47MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: Tape rewinding
  DUMP: 369934 blocks (180.63MB) on 1 volume at 432 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on Wed Jul 28 16:13:52 2004
  # ufsrestore tf /dev/rmt/0
         2      .
         3      ./lost+found
         4      ./usr
         5      ./export
         6      ./export/home
         7      ./var
         8      ./var/sadm
         9      ./var/sadm/install
        10      ./var/sadm/install/admin
       823      ./var/sadm/install/admin/default
        11      ./var/sadm/install/logs
       697      ./var/sadm/install/logs/SUNWmpatchmgr
       905      ./var/sadm/install/logs/Additional_Software_install...
       906      ./var/sadm/install/logs/Additional_Software_install...
        13      ./var/sadm/install/.lockfile
        14      ./var/sadm/install/install.db
       824      ./var/sadm/install/special_contents
       838      ./var/sadm/install/contents
                .
                .
                .
  # (Press Control-D to bring system to run level 3)Example 25-4 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: 
 # init 0
ok boot -s
# ufsdump 9ucf /dev/rmt/0 /
 DUMP: Date of this level 9 dump: Wed Jul 28 14:26:50 2004
 DUMP: Date of last level 0 dump: Wed Jul 28 11:15:41 2004
 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 Wed Jul 28 14:30:50 2004
 # 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 25-5 Performing a Full Backup of a Home DirectoryThe following example shows how to do a full backup of the /export/home/kryten home directory. The following ufsdump options are included: 
 # ufsdump 0ucf /dev/rmt/0 /export/home/kryten
  DUMP: Date of this level 0 dump: Wed Jul 28 15:02:48 2004
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t0d0s7 (starbug:/export/home) to /dev/rmt/0.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Writing 63 Kilobyte records
  DUMP: Estimated 2412 blocks (1.18MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: 2392 blocks (1.17MB) on 1 volume at 4241 KB/sec
  DUMP: DUMP IS DONE
# ufsrestore tf /dev/rmt/0
       232      ./kryten
       233      ./kryten/filea
       234      ./kryten/fileb
       235      ./kryten/filec
       236      ./kryten/letters
       237      ./kryten/letters/letter1
       238      ./kryten/letters/letter2
       239      ./kryten/letters/letter3
       240      ./kryten/reports
       241      ./kryten/reports/reportA
       242      ./kryten/reports/reportB
       243      ./kryten/reports/reportC
#Example 25-6 Performing a Full Backup to a Remote System ( Data to System)The following example shows how to do a full backup of a local /export/home file system on a system (mars) to a tape device on a remote system (earth) in single-user mode. The following ufsdump options are included: 
 # ufsdump 0ucf earth:/dev/rmt/0 /export/home
  DUMP: Date of this level 0 dump: Wed Jul 28 15:52:59 2004
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c0t0d0s7 (mars:/export/home) to earth:/dev/rmt/0.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Writing 63 Kilobyte records
  DUMP: Estimated 8282 blocks (4.04MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
  DUMP: Tape rewinding
  DUMP: 8188 blocks (4.00MB) on 1 volume at 67 KB/sec
  DUMP: DUMP IS DONE
  DUMP: Level 0 dump on Wed Jul 28 15:52:59 2004
# ufsrestore tf earth:/dev/rmt/0
         2      .
         3      ./lost+found
         4      ./kryten
         5      ./kryten/filea
         6      ./kryten/fileb
         7      ./kryten/filec
         8      ./kryten/letters
         9      ./kryten/letters/letter1
        10      ./kryten/letters/letter2
        11      ./kryten/letters/letter3
        12      ./kryten/reports
.
.
.
 # | ||
| 
 |