Information Library for Solaris 2.6 (SPARC Platform Edition)

How to Back Up a System

  1. Become superuser.

  2. Shut down the system.


    # init 0
    
  3. Bring the system to run level S (single-user mode).


    ok boot -s
    
  4. (Optional) Check the file system for consistency with the fsck command.

    Running the fsck command using the -m option checks for consistency for file systems. For example, power failure can leave files in an inconsistent state.


    # fsck -m /dev/rdsk/device-name
    
  5. If you will be backing up file systems onto a remote tape drive:

    1. Add the following entry to the ./rhosts file of the system that is initiating the backup:


      host root
      
    2. Verify that the host name added to the /.rhosts file above is accessible via the local /etc/inet/hosts file or available NIS or NIS+ name sever.

  6. Identify the device name of the tape drive.

    The default tape drive is /dev/rmt/0.

  7. Insert a tape that is not write protected into the tape drive.

  8. Back up file systems using one of theufsdumpcommands listed in Table 5-2.

    Table 5-2 Full Backup Commands

    To Do Full Backups To... 

    Use This Command... 

    Local diskette 

    ufsdump9ucf /vol/dev/ files_to_backup

    Local cartridge tape drive 

    ufsdump9ucf /dev/rmt files_to_backup

    Remote cartridge tape drive 

    ufsdump0ucf remote_host:/ files_to_backup

  9. When prompted, remove the tape and replace it with the next volume.

  10. Label each tape with the volume number, level, date, system name, and file system.

  11. Bring the system back to run level 3 by pressing Control-d.

  12. Verify the backup was successful by using the ufsrestore command to display the tape contents.