From a690a908c02e5c84cc8d70c6da071fb3420003cc Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Mon, 21 Oct 2024 10:02:37 -0400 Subject: [PATCH 1/4] Update maintenance scripts --- docs/deploy/README.md | 18 +++---- docs/deploy/kubernetes_design/README.md | 4 +- maintenance/scripts/add_user_to_proj.py | 2 +- maintenance/scripts/combine_backup.py | 2 +- maintenance/scripts/combine_restore.py | 2 +- maintenance/scripts/db_update_audio_type.py | 59 --------------------- maintenance/scripts/get_fonts.py | 2 +- maintenance/scripts/monitor.py | 2 +- maintenance/scripts/rm_project.py | 2 +- maintenance/scripts/update_cert.py | 2 +- 10 files changed, 18 insertions(+), 77 deletions(-) delete mode 100755 maintenance/scripts/db_update_audio_type.py diff --git a/docs/deploy/README.md b/docs/deploy/README.md index ccbc089065..287bd99656 100644 --- a/docs/deploy/README.md +++ b/docs/deploy/README.md @@ -397,19 +397,13 @@ Notes: ### Maintenance Scripts for Kubernetes -There are several maintenance scripts that can be run in the kubernetes cluster: - -- `combine-backup-job.sh` - performs a backup of _The Combine_ database and backend files, pushes the backup to AWS S3 - storage and then removes old backups keeping the latest 3 backups. -- `combine_backup.py` - just performs the backup and pushes the result to AWS S3 storage. -- `combine-clean-aws.py` - removes the oldest backups, keeping up to `max_backups`. The default for `max_backups` is 3. -- `combine_restore.py` - restores _The Combine_ database and backend files from one of the backups in AWS S3 storage. +There are several maintenance scripts that can be run in the kubernetes cluster; they are listed in +[./kubernetes_design/README.md#combine_maint-image](./kubernetes_design/README.md#combine_maint-image). The `combine-backup-job.sh` is currently being run daily on _The Combine_ QA and Production servers as a Kubernetes CronJob. -In addition to the daily backup, any of the scripts can be run on-demand using the `kubectl` command. Using the -`kubectl` command takes the form: +In addition to the daily backup, any of the scripts can be run on-demand using the `kubectl` command as follows: ```bash kubectl [--kubeconfig=] [-n thecombine] exec -it deployment/maintenance --