Rotate logs and backup database on deployed gateways#140
Merged
Conversation
0853e7f to
e7afa66
Compare
e7afa66 to
393d846
Compare
393d846 to
a4a24c4
Compare
a4a24c4 to
e728ea5
Compare
3dcae60 to
032bff2
Compare
048806b to
c0d184c
Compare
c0d184c to
502eed0
Compare
f246e23 to
24b402f
Compare
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
24b402f to
801ce7c
Compare
carlosmartinez
previously approved these changes
Jun 24, 2026
Contributor
Author
|
@carlosmartinez I have retested all 3 scheduled tasks on the review gateway VM and everything works as expected. I've pushed an additional commit to rename db backup function. Would you re-approve please? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Rotate logs and backup databases on Windows VMs
Sets up a daily schedule to rotate logs at 2:30AM. 5 rotated logfiles for each service are retained.
Sets up a weekly schedule to backup databases every Sunday at 2AM. A default 5 backups are retained.
The PACS database backup also creates a zip archive of PACS directories and files from
data\storage\*then deletes the contents of the directory. The zip is overwritten each time but this means we retain a week of PACS data + db.Scheduled Tasks on Gateway VM
Jira link
https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13124
Review notes
Best to review via RDP from the azure portal, you should see the scheduled tasks on the gateway and evidence of logs and db rotation.
Review checklist