Full and different backup
hungnn
Posts: 18
Hi Petey
I tried the following scenario: Full backup everyweek, different backup every day and transaction log backup every 1 hour. The thing in here was: SQL Backup allows me to run the different backup even I have not backed up the full database.
As I understand, I need to run the full backup first, then choose the different backup by pointing to this full backup.
So if I want to follow the above scenario, what should I do ?
Thanks
I tried the following scenario: Full backup everyweek, different backup every day and transaction log backup every 1 hour. The thing in here was: SQL Backup allows me to run the different backup even I have not backed up the full database.
As I understand, I need to run the full backup first, then choose the different backup by pointing to this full backup.
So if I want to follow the above scenario, what should I do ?
Thanks
Comments
Could you please explain what you mean by 'pointing to this full backup'?
To perform a differential backup, you only need to have performed a full database backup sometime in the past. To find out which full backup you need before you can restore a differential backup, look in the msdb..backupset table, where the database_backup_lsn value of the differential backup must match the checkpoint_lsn value of the full backup.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
The issue in here is that I can even Running the different backup without performing the full backup and aslo when doing this, SQL Backup did not asked me the Full Backup, it just allows me to create the Different backup straight away. That's why it makes me so confused.
- create a new database e.g. CREATE DATABASE difftest
- create a differential backup e.g. BACKUP DATABASE difftest TO DISK = 'c:\difftest_diff.bak'
SQL Server reports that no full backup was ever made, hence a differential backup cannot be performed.
- create a differential backup using SQL Backup e.g. EXEC master..sqlbackup '-sql "BACKUP DATABASE difftest TO DISK = [c:\difftest_diff.sqb]" '
The same error is reported.
If SQL Server/SQL Backup allows you to create a differential backup, it means that a full database backup exists for that database. You could use the following script to get details of that backup
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8