Skip to content

Commit 1592c2d

Browse files
Added OlaJobsSchedule function
1 parent 3247d5a commit 1592c2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Set-OlaJobsSchedule.ps1

+10-10
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@
1212
The "One Day a week here should be a different day of the week
1313
1414
User databases:
15-
•Full backup one day per week * If using differentials otherwise daily
16-
•Differential backup all other days of the week * If required - otherwise don't schedule
15+
•Full backup one day per week Sunday 00:16 * If using differentials otherwise daily
16+
•Differential backup all other days of the week 00:16 * If required - otherwise don't schedule
1717
•Transaction log backup every hour
18-
•Integrity check one day per week
18+
•Integrity check one day per week 20:16 on a Friday
1919
•Index maintenance one day per week
2020
2121
System databases:
22-
•Full backup every day
23-
•Integrity check one day per week
22+
•Full backup every day 23:46
23+
•Integrity check one day per week 23:16 on a Friday
2424
2525
I recommend that you run a full backup after the index maintenance. The following differential backups will then be small. I also recommend that you perform the full backup after the integrity check. Then you know that the integrity of the backup is okay.
2626
2727
2828
The one day of a week here can be the same day of the week
2929
3030
Cleanup:
31-
•sp_delete_backuphistory one day per week
32-
•sp_purge_jobhistory one day per week
33-
•CommandLog cleanup one day per week
34-
•Output file cleanup one day per week
31+
•sp_delete_backuphistory one day per week 19:16 on a Sunday
32+
•sp_purge_jobhistory one day per week 19:16 on a Sunday
33+
•CommandLog cleanup one day per week 19:16 on a Sunday
34+
•Output file cleanup one day per week 19:16 on a Sunday
3535
3636
.PARAMETER
3737
Server
@@ -42,7 +42,7 @@
4242
4343
.NOTES
4444
Obviously requires Ola Hallengrens Maintnance Solution script to have been run first and only schedules the default jobs
45-
45+
https://ola.hallengren.com/
4646
AUTHOR: Rob Sewell sqldbawithabeard.com
4747
DATE: 1/05/2015 - Initial
4848
#>

0 commit comments

Comments
 (0)