Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Create script to run db_backup and upload to S3 #324

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

aloftus23
Copy link
Contributor

fixes #253

🗣 Description

Python script that first runs the database backup script, then uploads the resulting dump files to an S3 bucket. *Cron job will run this at the end of every report period.

💭 Motivation and context

Efficiently backs up the database incase anything happens to it and improves P&E team member's ability to pull down a copy.

🧪 Testing

Passes pre-commits and pytests. Logging included to show any failures.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

@aloftus23 aloftus23 self-assigned this Nov 9, 2022
@coveralls
Copy link

Coverage Status

Coverage remained the same at 26.288% when pulling 4885a4d on AL-dbBackupsS3-dev into 0c89337 on develop.

@lgtm-com
Copy link

lgtm-com bot commented Nov 9, 2022

This pull request introduces 1 alert when merging 4885a4d into 0c89337 - view on LGTM.com

new alerts:

  • 1 for Testing equality to None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Run database backup every report period and add capability to upload/download to S3
2 participants