
Backing up and Restoring Files
# P0602484 Ver: 2.7 Page 131
Execution
There are various command options when running clone.pl to backup data from
disk to disk. To get help on the clone.pl script refer to step 2 under Preparation
for Solaris Backup on page 128.
1. Backup Entire Disk – The ‘-f’ option determines which method to use,
either dd for drives of the same geometry or tar for drives with different
geometry.
Performing an entire disk backup on a system with only one target drive
available.
#perl clone.pl -f full
Performing an entire disk backup on a system with more than two drives.
There are two ways to specify the backup drive. Either specify the target drive
in the command line or configure it in the clone.cfg file. Below is a
sample command line for the first case.
#perl clone.pl -f full -d c0t1d0
To configure clone.pl using the clone.cfg file, see Configure below.
2. Backup Partitions using tar. For any backup not using dd complete step
5 under Preparation for Solaris Backup on page 128 for formatting and
creating a file system on partitions.
Performing a partition backup: the command below shows how to backup
partitions (using tar) /var /usr on backup drive:c0t0d0 with all the debug
options on.
#perl clone.pl -p ' /var /usr ' -L 4 -d c0t0d
The command below will backup the entire disk using tar. It is an entire disk
backup because all partitions on the system drive are chosen. When backing
up the root partition ‘/’ the boot block is automatically installed. This method
of tar backup is the safest for backing up a system still running in multi-user
mode (system up), this is due to tar’s ability to copy “open files”.
It best to perform this backup process during a “quite” time as to not impact
system performance.
#perl clone.pl -p '/ /var /opt /usr /mmf' -L 4 -d
c0t0d
3. Recover Partitions using tar.
Recover partitions /var and /usr.
#perl clone.pl -b off -r on -p '/var /usr' -L 4 -d
c0t0d0
Comentarios a estos manuales