• PhilM99 (9/24/2009)


    Thanks to Silverfox and ALZDBA for the quick replies!

    OK, if I do this am I on the right track?:

    1) Manually:

    Set recovery model to Full

    Do a log backup using the DBCC command with INIT to get the log file contents to a reasonable size

    Do a Shrinfile of the log using the DBCC command to get the file size back down

    2) Set up scheduled jobs steps to

    Backup the database fully in the middle of the night

    i.e. BackupLOG with NOINIT, BACKUP Database with INIT (what does that mean, I'll look itup)

    Schedule an Incremental Backup of the log, say, hourly during daylighthours (that's probably NOINIT, too)

    at some point schedule a log backup with INIT (I don't get that part)

    ALZDBA, I don't understand why you have the complex arrangement of jobs modifying the schedule of other jobs. What is it that you are achieving by doing that?

    Thanks

    You will understand that once you get to your statement

    (what does that mean, I'll look itup)

    The INIT parameter means it will overwrite the given backup file's content.

    The NOINIT parameter means it will NOT overwrite the file's content.

    I've built in this little piece of rocket science :hehe: with the construct of these 3 jobs because I don't want to have two backup jobs running at the same time and because I aim for incremental log-bak files having a single file spanning between two full backup sequences.

    The separate Log _Init job is in place because the last step of the Full bak job has this xcopy step towards the safe zone.

    By default, I alter the schedule of the log_init job the current time + 30 minutes.

    Since the log_init will overwrite the log-bak file, size of that file will be small.

    After that, the incremental log backup job is activated, and the circle is complete.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me