Backup Device Maintenance or Selective Removal of Backup Device Entries

  • You can't remove appended backup files from a backup files.

    I think you creating one backup file for each day...

    Is there any reason appending the backup to single file?

     

    MohammedU
    Microsoft SQL Server MVP

  • Thank you for responding.

    I am placing all the backups for a single day on a single backup device so that I only had to create a single backup device for the transactions. Actually, I thought that this was the normal way of automating the hourly transaction log backups. If it is not, please advise.

    In a separate issue, yesterday I received an error when trying to restore the logs for one of the databases with a STOPAT, because I had transaction logs for more than one database on a single device. If I am understanding correctly, all transaction log backups for a single database need to go in a single backup device. In other words, if I am backing up the logs for 5 DBs, then I need 5 backup devices for the TLs.

  • It will make things easier for the transaction log backups for each database to be in its own backup device.

    You can still restore items from the mixed backup device, just use the FILE option during the restore e.g.

    RESTORE LOG northwind FROM DISK = 'e:\backups\pubs.bak' WITH FILE = 2

    where FILE = 2 indicates that you want to restore from the 2nd backup set on that file. You can view the backup sets contained in a particular backup file by using the RESTORE HEADERONLY command e.g.

    RESTORE HEADERONLY FROM DISK = 'e:\backups\pubs.bak'

    Peter Yeoh
    Developer
    Red Gate Software

  • My preference is to perform each backup to a separate device with the device/filename in the following format:

    ServerName_dbName_yyyymmddhhmmss_buType.sbk

    ...where

    ServerName = the SQL Instance name

    dbName = the database name

    yyyymmddhhmmss = date/time

    buType = FULL | DIFF | LOG |FGRP (filegroup)

    I have also done single device backups which started with a Full and subsequent Log backups for the day.

Viewing 4 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply