Documente Academic
Documente Profesional
Documente Cultură
Advanced procedures
Sample include/exclude statements
To exploit automatic version control and expiration, you are able to set policy for each type of backup data, illustrated by the following Data Protection for SQL options file INCLUDE/EXCLUDE statements (see Setting automatic expiration for the general syntax): BackupType Object Matches All objects Specification \...\*
All backupType objects (full, diff, log, group, file, set) \...\full* \...\diff* etc. All group or file object names (g1, f1) All group or file object names beginning with g or f Same as \...\group* or \...\file* \...\g1\group* \...\f1\file* \...\g*\group* \...\f*\file* \...\*\group* \...\*\file*
BackupType Object with Database Matches All objects with database name Db1 All objects with database name Db1 beginning with Db Ambiguous All full or diff objects with database name Db1 All log, group, file, or set objects with database name Db1
All group or file object names (g1, f1) with database \...\Db1\g1\group* \...\Db1\f1\file* name Db1 All group or file object names beginning with g or f with database name Db1 Same as \...\Db1\...\group* or file* Same as \...\Db1\full* Same as \...\full* Same as \...\group* Same as \...\g1\group* Ambiguous \...\Db1\g*\group* \...\Db1\f*\file* \...\Db1\*\group* \...\Db1\*\file* \...\Db1\...\full* \...\*\full* \...\*\*\group* \...\*\g1\group* \...\*\...\log*
Meta & Data Object Matches All meta or data objects All meta or data full, log, or group objects All meta or data group object names (g1)
All meta or data group object names beginning with \...\meta\...\g*\group* etc. g Same as \...\meta|data\...\group* Nothing (qualifiers missing) \...\meta\...\*\group* etc. \...\meta\*\...\data\*
Meta & Data Object with Database Matches All meta or data objects with database name Db1 All meta or data full objects with database name Db1 All meta or data log or group objects with database name Db1 All meta or data group object names (g1) with database name Db1
All meta or data group object names beginning with \...\meta\...\Db1\g*\group* etc. g with database name Db1 Same as \...\meta|data\...\Db1\...\group* Same as \...\meta|data\...\full* Same as \...\meta|data\...\group* Same as \...\meta|data\...\g1\group* Ambiguous \...\meta\...\Db1\*\group* etc. \...\meta\...\*\full* etc. \...\meta\...\*\*\group* etc. \...\meta\...\*\g1\group* etc. \...\meta\...\*\...\log* \...\data\...\*\...\log*
Server Matches
Specification
All objects from all servers beginning with SQL All objects from server SQL70 All objects from server SQL70 with database name Db1 All full objects from server SQL70 with database name Db1 All meta or data objects from server SQL70 All objects from all server instances with host SQL2000 All objects from server SQL2000\INST1 All objects from all servers beginning with SQL2000\INST Same as SQL2000\...\* All meta or data objects from server SQL2000\INST1 All meta or data objects from all named server instances with host SQL2000 All meta or data objects from all server instances with host SQL2000 All objects from server default instance (if no instance name matches ??ta)
SQL*\...\* SQL70\...\* SQL70\...\Db1\...\* SQL70\...\Db1\full* SQL70\meta\...\* SQL70\data\...\* SQL2000\...\* SQL2000\INST1\...\* SQL2000\INST*\...\* SQL2000\*\...\* SQL2000\INST1\meta\...\* SQL2000\INST1\data\...\* SQL2000\*\meta\...\* etc. SQL2000\...\meta\...\* etc. SQL2000\??ta\meta\...\* SQL2000\??ta\data\...\*
5. Manually reapply any changes that were made to the master database after the date of the database backup used to do the restore operation. 6. Use Data Protection for SQL to restore the msdb database. It is very important to keep an up-to-date backup of your master database because the master database contains the system catalog. The system catalog contains important information about the SQL Server configuration. Ensure that you back up the master database after any changes that update system tables. For example, back up the master database after any of these statements are used: ALTER DATABASE CREATE DATABASE DISK INIT DISK RESIZE DISK MIRROR DISK UNMIRROR DISK REMIRROR Various DBCC options such as SHRINKDB System stored procedure such as: sp_dropremotelogin, sp_addumpdevice, sp_dropdevice, sp_addlogin, sp_droplogin, sp_addserver, sp_dropserver, sp_addremotelogin