You can use SPD Server
utilities to perform incremental backups on data sets that you have
previously archived, and to perform full backups on new data sets
that have never been backed up. You can also back up your SPD Server
data sets by using a system utility from your native operating environment.
Which one should you use? The advantage to using system full backups
is that a system utility does not parse the data set. Therefore, this
type of backup usually runs faster than the SPD Server utility when
you are doing a full backup. For example, system utilities often write
directly to tape storage media. In contrast, the SPD Server utility
first writes backup data to a file on the hard drive, and then the
backup file is usually backed up to tape.
This example outlines
the steps that you use to perform a full system backup of the domain
test
by
using operating system utilities once a week, and then to use SPD
Server to perform a domain back up on the remaining nights.
-
On Sunday, February
3, 2008 at 23:30, run the SPD Server list utility
spdsls
-l
to produce a listing of the tables that belong to
the domain
test
in preparation for a full
backup.
spdsls -l -a <physical_path_of_domain>
-
On Monday, February
4, 2008 at 23:30, run the SPD Server backup utility
spdsbkup and
set the last full backup date to the previous night for the
test
tables.
The utility performs an incremental backup of tables that have changed
since the last full system backup, and it performs a full backup of
tables that were created after the last full system backup was performed.
spdsbkup -d test -h host -s serv -t 02/04/08:23:30:00 -f backup
The
utility creates the backup data file backup_BK_04Feb2008_233000.0.0.0.spds
and a backup table of contents file backup_TC_04Feb2008_233000.
The backup file contains
incremental changes for tables that were modified after 23:30:00 on
February 3, 2008, and full backups of tables created after 23:30:00
on February 4, 2008. Only the tables that were modified or created
since the last full backup date are included in the backup file. The
table of contents file contains information about each table that
was either incrementally or fully backed up.
-
Archive the SPD Server
backup file and source in the table of contents file into a SAS table
of contents table.
-
On Tuesday night through
Saturday night, use the SPD Server backup facility to do incremental
backups of previously backed up tables and full backups of the newly
created tables:
spdsbkup -d test -h host -s serv -f backup
A last full backup date
is not specified for the remaining week's incremental backups. The
SPD Server backup utility performs incremental backups of tables that
were previously backed up and full backups of tables that were created
since the previous night's backup. Although the same filename prefix
is specified each night,
spdsbkup saves each
night's backup to a different file and appends the date and time of
the backup to the filename.
-
Archive the incremental
data file and source in the table of contents file into a SAS table
of contents table.