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 for
each table that was either incrementally or fully backed up.
3. Archive the SPD Server backup file and source in the table of contents file into a SAS
table of contents table.
4. 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
There is no last full backup date 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, appending the date/time of the
backup to the filename.
5. Archive the incremental data file and source in the table of contents file into a SAS
table of contents table.
Example 3: Restoring a Single SPD Server Table
Use the following steps to restore a table that was accidentally deleted from the domain
"test" on Friday, February 8, 2008.
1. If the table was backed up fully by the operating system backup utility, use the system
restore utility to restore the table. (Restore the table to its last full backup image, taken
on February 3, 2008.) If the table was backed up fully by the SPD Server backup utility,
skip this step.
2. Run a SAS query on the backup table of contents table
bkup.toc
.
select bk_file from foo.bkup_toc
where domain = "test"
and table = "results"
and dttime >= '03Feb2008:23:30:00'd;
The query results indicate which SPD Server backup files are required to restore the
table to its last full backup state.
3. Restore the archived SPD Server backup files and any extensions that are required to
restore the table.
4. Run
spdsrstr
on each sequential SPD Server backup file to restore the table. The order
runs from the oldest backup date to the most recent backup date. Our example table
was backed up fully using the SPD Server backup utility on Sunday, February 3, 2008.
The table was then backed up incrementally on Tuesday, February 5, and Thursday,
February 7. Thus, the order of the statements required to restore the table are
spdsrstr -d test -h host -s serv -f backup_BK_03Feb2008_233000.0.0.0.spds results
spdsrstr -d test -h host-s serv -f backup_BK_05Feb2008_233000.0.0.0.spds results
spdsrstr -d test -h host -s serv -f backup_BK_07Feb2008_233000.0.0.0.spds results
Restore Usage Examples
245
Summary of Contents for Scalable Performance Data Server 4.5
Page 1: ...SAS Scalable Performance Data Server 4 5 Administrator s Guide...
Page 7: ...Part 1 Product Notes Chapter 1 SPD Server 4 5 Product Notes 3 1...
Page 8: ...2...
Page 12: ...6...
Page 63: ...Part 3 Migration Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility 59 57...
Page 64: ...58...
Page 70: ...64 Chapter 5 SPD Server 3 x to SPD Server 4 5 Conversion Utility...
Page 72: ...66...
Page 76: ...70 Chapter 6 Using the SPD Server Name Server to Manage Resources...
Page 94: ...88 Chapter 7 Administering and Configuring SPD Server Using the SAS Management Console...
Page 98: ...92 Chapter 8 SPD Server SQL Query Rewrite Facility...
Page 116: ...110 Chapter 10 Configuring Disk Storage for SPD Server...
Page 128: ...122 Chapter 11 Setting Up SPD Server Parameter Files...
Page 154: ...148...
Page 198: ...192 Chapter 14 ACL Security Overview...
Page 212: ...206 Chapter 15 Managing SPD Server Passwords Users and Table ACLs...
Page 214: ...208...
Page 224: ...218 Chapter 16 SPD Server Operator Interface Procedure PROC SPDO...
Page 236: ...230 Chapter 18 SPD Server Table List Utility Spdsls...
Page 256: ...250 Chapter 19 SPD Server Backup and Restore Utilities...
Page 264: ...258 Chapter 20 SPD Server Directory Cleanup Utility...
Page 270: ......