beautypg.com

2 saving database backup files, Saving database backup files -47 – HP StorageWorks Scalable File Share User Manual

Page 177

background image

Backing up and restoring system data

6–47

In addition to the backups created by the

create database_backup

command, the following snapshot

backups are also created and stored:

Monthly Snapshot Backups A snapshot backup is taken and stored once each month. The first twelve

monthly snapshot backups are stored; after the first twelve months, the

oldest monthly snapshot backup is deleted each time a new monthly

snapshot backup is taken.

Yearly Snapshot Backups A snapshot backup is taken and stored once a year. The yearly snapshot

backups are kept on the system unless or until they are manually deleted.

The monthly and yearly snapshot backups allow you to revert to a previous configuration if necessary (see

Section 6.3.3).

The

show database_backups

command displays details of all stored backup files on the server, showing

the date and time each backup file was created. For convenience, the

show database_backups

command also displays a number for each file, and you can use this number when specifying that a backup

file is to be restored or deleted (see Section 6.3.3 and Section 6.3.4).

Backup file numbers are unique on a server, but not across the system; that is, there can be a backup file

numbered

1

on both the administration server and on the MDS server, and these files may not have been

created at the same time. The following is an example of the output from the

show database_backups

command:

sfs> show database_backups

Copy Made At
---- ----------
1 10:41 2004-03-10
2 10:41 2004-03-11

6.3.2 Saving database backup files

HP recommends that you save copies of database backup files on a system other than the HP SFS system.

There are two reasons for doing this, as follows:

The backup file is stored on local disk; if that disk fails, the database backup file may be lost.

If you are upgrading the version of the HP SFS software on your system, the upgrade process requires

you to save and later restore the database backup file. You will be unable to upgrade your system

unless you have saved a backup file on a system other than the HP SFS system being upgraded.

To save a backup file on another system, perform the following steps:

1.

Enter the

show database_backups

command to list the available backup files, as follows. If

necessary, enter the command on both the administration server and the MDS server:

sfs> show database_backups

Copy Made At
---- ----------
1 10:41 2004-03-10
2 10:41 2004-03-11

2.

Save the backup file, using the full name of the backup file, which is based on the time and date the

file was created. For example, if you want to save the backup file from 2004-03-11 shown in the

output in the previous step, the full name of the backup file is

/var/hpls.local/

hplsdb_20040311-1041.tar.gz

. Assuming you are saving the database to host

16.123.123.1

and using the account

fred

on that host, copy the backup file as shown in the

following example:

# scp /var/hpls.local/hplsdb_200403011-1041.tar.gz \
[email protected]:/home/fred