Restore Database From Overwritten Old Backups

  • Hi Every one..

    Like to take advise on this.

    Have one backup file which overwritting everyday full backup on that file Suppose ADW.Bak overwritting Full Backup every day .I want to restore Database with 5 day old backup file how i can do that?

    When i am trying to restore it showing me most current backup file only?

  • Was the backup overwriting the older backups in the file every night or appending the backup to the file?

    Restore headeronly should show you what backups are in the file.

    If there's only one backup in the file, then you can only restore from that. If backups are being overwritten then the older backups are gone.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Its Overwritting with INIT and NOFORMAT Option.

    Restore Headeronly showing most current backup file which todays date..

  • this is the command

    BACKUP

    DATABASE XXX.bak TO DISK = N'F:\Backup\XXX.bak' WITH NOFORMAT, INIT, NAME = N'XXX_backup_2013_10_10_153518_8403533', SKIP, REWIND, NOUNLOAD, STATS = 10

    GO

  • logicinside22 (10/10/2013)


    Its Overwritting with INIT and NOFORMAT Option.

    Restore Headeronly showing most current backup file which todays date..

    That's because INIT deletes old backups from the file before starting the new backup. There's no other backups than the latest in that file, so that's all you're going to be able to restore.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Thanks a lot Gail . your information always best .

  • You don't have e.g. an offsite backup that takes a copy of your backup file every night, do you? If so you could possibly restore that.

Viewing 7 posts - 1 through 6 (of 6 total)

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