System Administration Guide: Basic Administration

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:


# umount /export/home

# 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
#