Performing File system Backup ( solaris 10 )


Strategies for Scheduled Backups


A full backup is a complete file system backup.

An incremental backup copies only files in the file system that have been added or modified since a previous lower-level backup.

Backups are often referred to as dumps.

Use dump level 0 to perform a full backup.

Use dump levels 1 through 9 to schedule incremental backups


# ufsdump 0S filesystem_name    ==> to determine the size of the file system
                    to be backed up

        or

# ufsdump 3S filesystem_name

S - size estimate


The /etc/dumpdates file records backups if the -u option is used with the ufsdump command.

# cat /etc/dumpdates


Backing Up an UNMOUNTED File System

/usr/sbin/ufsdump

The syntax for the ufsdump command is:

ufsdump option(s) argument(s) filesystem_name


Tape Back Ups
Perform the following steps to use the ufsdump command to start a tape backup:

1. Become the root user to change the system to single-user mode, and
   unmount the file systems.

# /usr/sbin/shutdown -y -g300 “System is being shutdown for backup”


2. Verify that the /export/home file system was unmounted with the
   shutdown command. If not, unmount it manually.


3. Check the integrity of the file system data with the fsck command.

# fsck /export/home


4. Perform a full (Level 0) backup of the /export/home file system.

# ufsdump 0uf /dev/rmt/0 /export/home


# ufsrestore tf /dev/rmt/0    ==> t - to list the table of contents of the                         backup media

# ufsrestore tvf /dev/rmt/0



Remote Backups to a Tape

To perform a backup on a remote tape device.

ufsdump options remotehost:tapedevice filesystem

To perform remote backups across the network, the system with the tape drive must have an entry in its /.rhosts file for every system that uses the tape drive.


The following example shows how to perform a full (Level 0) backup of the
/export/home file system on the host1 system, to the remote tape device on the host2 system.

# ufsdump 0uf host2:/dev/rmt/0 /export/home