Presentation is loading. Please wait.

Presentation is loading. Please wait.

Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific.

Similar presentations


Presentation on theme: "Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific."— Presentation transcript:

1 Presented by Joseph Galvan & Stacy Kemp BACKUPS

2  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific point in time.  Backups should be executed regularly to protect from data loss and downtime.  Databases can be backed up to disk, or to a network path. BACKUPS

3 FULL DIFFERENTIAL TRANSACTION LOG DIFFERENT TYPES OF BACKUPS

4  A full database backup backs up the entire database. This includes part of the transaction log so that the full database can be recovered after a full backup is restored.  Full database backups represent the database at the time the backup finished.  Full backups are used as a base for differential backups; therefore, it must be done prior to the first differential backup. FULL BACKUP

5 EXAMPLE OF A FULL DATABASE BACKUP USING T-SQL

6  Over time, the typical database grows and so does the backup file. The larger the database, the more space the backup file will require and the longer it will take to perform the backup which could also potentially affect performance.  As a result, SQL Server allows you to perform differential (incremental) backups.  Differential backups are smaller than full backups because they capture only what has changed in the database since the last full backup. DIFFERENTIAL BACKUP

7 EXAMPLE OF A DIFFERENTIAL BACKUP USING T-SQL

8  Every SQL Server database has a transaction log that records all transactions and the database modifications made by each transaction.  The transaction log must be truncated on a regular basis to keep it from filling up.  However, some factors can delay log truncation, so monitoring log size is important. Some operations can be minimally logged to reduce their impact on transaction log size.  The transaction log is a critical component of the database.  If there is a system failure, the transaction log might be required to bring your database back to a consistent state.  The transaction log should never be deleted or moved unless you fully understand the ramifications of doing this. TRANSACTION LOG

9 EXAMPLE OF A TRANSACTION LOG BACKUP USING T-SQL

10 Backing up databases is the second most important task that a DBA should perform. The most important task is recovering databases. Using SQL Server, you can restore the following: SQL Server allows you to restore databases using both T-SQL and SSMS RESTORING DATABASES An entire databaseA page in a databaseA part of a databaseThe database transaction logA file or filegroup in a database


Download ppt "Presented by Joseph Galvan & Stacy Kemp BACKUPS.  Using database backups, a database administrator (DBA’s) can restore from the last backup or to a specific."

Similar presentations


Ads by Google