IBM/AIX

savevg

nickas 2012. 11. 9. 19:11

10.4.1 The savevg command

The savevg command finds and backs up all files belonging to a specified volume

group. The command has the following syntax:

savevg [ -e ] [ -f Device ] [ -i | -m ] [ -p ] [ -v ] [ -X ] VGName

The commonly used flags are shown in Table 10-2.

 

Table 10-2 Commonly used flags for the savevg command

Flag Description

-e    Excludes files specified in the /etc/exclude.vgname file from being backed up by this command.

-f     Device Specifies the device or file name on which the image is to be stored. The default is the /dev/rmt0 device.

-i     Creates the data file by calling the mkvgdata command.

-m   Creates the data file with map files.

-p    Disables software packing of the files as they are backed up.

-X   Specifies to automatically expand the /tmp file system if necessary.

 

The savevg command uses a data file created by the mkvgdata command. The

data file created is as follows:

/tmp/vgdata/vgname/vgname.data

The vgname.data file contains information about a user volume group. The

savevg command uses this file to create a backup image that can be used by the

restvg command to re-create the user volume group.