Daily Backup Job

  • Hi Friends,

    I need to set up a job to create backup everyday. I also need to overwrite an existing backup. Can somebody please help me with it.

    Thank you

  • This is really basic stuff. Do you have any exposure to maintenance plans?

    I do prefer to run my backups using custom scripts but certainly a maintenance plan would be the easiest/fastest way to get it done.

    First thing first... what would be your backup/recovery strategy? would it be point-in-time or would it be last-known-whole-backup?

    _____________________________________
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at Amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
  • Hi Paul,

    Actually I am looking for a script with which I could create a job to do a daily backup and overwrite previous day backup in the same job.

    Thanks for your help in advance!!

  • Use INIT option in the WITH clause of backup statement, it will overwrite the existing backup file. for more info try this link

    http://msdn.microsoft.com/en-us/library/ms186865.aspx

    Nag.

    Nag
    ------------------------------------------------
    How to get the best help on a forum

    http://www.sqlservercentral.com/articles/Best+Practices/61537

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

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