Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add database backup scripts #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jonxslays
Copy link
Contributor

@Jonxslays Jonxslays commented May 5, 2024

This PR adds 4 scripts for taking backups of the WOM and WOM Bot databases.

  • wom-backup.sh - This script will run on a cron timer and is the entrypoint for the other scripts.
  • wom-dump.sh - This script performs the dumping of an individual database.
  • wom-prune.sh - This script handles pruning old backups from the backup server.
  • wom-upload.sh - This script handles pruning the local backups and uploading them to the backup server.

TODO

  • Create an SSH key for the scripts to use to connect from the wom server to the backup server.
  • Create a webhook for the scripts to send details of failed backups.

Worth noting that when calling these scripts and passing a directory argument, never include the trailing slash - the scripts take care of that.

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

Successfully merging this pull request may close these issues.

None yet

1 participant