Backup the Tail of the Transaction Log

SQL-Management-StudioThis is a step by step tutorial on how to backup the Tail of the Transaction Log using the graphical interface of SSMS.
In order to find more information about the Tail of the Transaction Log, please read our article, which offers more details regarding this type of backup, here.

 

How to backup the Tail of the Transaction Log with SSMS

    1. The first step would be to connect to the appropriate instance of SQL Server Database Engine and then in the Object Explorer window you have to double click the server name which will expand the server tree.
    2. The next step would be to expand the Databases folder and then you can either choose a User Database or a System Database.

      1

    3. Next step would be to right-click the database you want the backup to be made for and select Tasks and then click Back Up.

      2

    4. In the Back Up Database dialog that appears, please make sure that in the Database list box the database you want to back up is selected. At this point, you can opt to select a different database for which you will do the tail backup.

      3

    5. Verify that the selected recovery model is selected is FULL or BULK_LOGGED.

      4

    6. Select Transaction Log in the Backup type list box.

      5

    7. Make sure that the Copy Only Backup tickbox remains deselected.
    8. In the Backup list section, you can leave or change the name of the backup and optionally add a description for the backup.
    9. In the same section, you also have the possibility to add an expiration date or period for the backup.
        • In order to have the backup expire after a set number of days, click the After option, if it’s not defaulted, and input the number of days after creation date when you want the backup to expire.
        • This value has to be an integer ranging from 0 to 99999, in which case 0 will guarantee that your backup will never expire.

          6

    10. Pick the type of backup destination by selecting either Disk or Tape. You have the possibility of selecting up to 64 paths corresponding to disk or tape drives containing a single media set.
    11. In the Select Page (top left side of the window) select Options.
    12. In the section called Overwrite Media, choose one of the following options:
      • Backup to existing media set
        • In case of this option, choose either Append to the existing backup set or Overwrite all existing backup sets.
        • By appending another backup to the existing media set, the previous contents of the media remain intact and the new backup is written at the end of the last backup of the media.
        • By overwriting all existing backup sets, all other backup sets on the media are going to be overwritten, but will preserve the media header, if it is present. In case no media header exists, one is created.
        • Another available option is to select Check media set name and backup set expiration, which will cause the operation to check the date and time at which the media set and the backup set are going to expire.
        • If the previous checkbox is ticked, you can input a name in the Media set name textbox, and in case no name is inputed, a media set with a blank name will be created. If a name is specified, the media is checked to see whether the actual name matches the name that has been entered.

          7

      • Backup to a new media set and erase all existing backup sets
        • With this option, you enter a name in the New Media set name text box and an optional description.
        • The process of creating a new media set implies formatting the backup media (one or more tapes or disk files).
        • The formatting process changes the backup media as follows: deletes the old header, effectively deleting the previous contents of the backup media and writes a new media header on the backup media on each of the backup devices.

          8

    13. The Reliability section provides optional checkups after the backup is made.
      • Verify backup when finished
      • Perform checksum before writing to media
      • Continue on checksum error

        9

      • We recommend ticking at least the first two checkboxes when doing backup
    14. In the Transaction log section, check Back up the tail of the log and leave the database in restoring state.

      10

    15. Optionally, you can select the compression of the backup you are going to make from the dropdown list. For more details regarding compression of backups, please review our article.

About Radu Gheorghiu

Passionate SQL Developer on the journey of trying to become an expert in all things Data (storage, manipulation, gathering etc.) Information is power, and information can only be obtained from data. Thus, in order to harness the power of information, you must be a master of Data.

Leave a Reply

Your email address will not be published. Required fields are marked *