Commit graph

13 commits

Author SHA1 Message Date
Wesley Aptekar-Cassels c58689ae20 Adjust sample postgres-docker cron file
Only delaying one minute between backup and weeding means that the
backup script could potentially still be running when the weed script
is, which isn't good. Instead, wait a little longer.
2023-03-25 20:21:00 -04:00
Wesley Aptekar-Cassels a0b8adf3a9 Fix weed.sh script
This allows it to work with the naming convention used by the backup
script.

Fixes: #2753
2023-03-21 20:34:08 -04:00
Christof Dorner 6fdc9c6118 Move executable scripts to /usr/local/bin
They are currently in the same folder as the backup files which is on a volume. This makes it impossible to make changes to these scripts and have them applied the next time somebody upgrades and builds these docker images again.
2023-01-01 14:14:33 +01:00
Christof Dorner cf76173bd1 Support custom pg user/db names in DB backup script 2022-12-26 15:20:21 +01:00
Joel Bradshaw 2e9574d53c Add database to filename, don't install recommends
Cron comes with just a metric ton of recommended dependencies including
mariadb-common which is just a bunch of unneccessary weight. Just
install what's necessary for cron.
2021-12-28 14:18:57 -08:00
Joel Bradshaw 879a410808 Attempt to use env variable for backup script
This should be available via docker, and we shouldn't have the database
name hardcoded anywhere
2021-12-28 13:45:55 -08:00
Joel Bradshaw cd9acef30a Remove last traces of fedireads 2021-12-28 13:35:27 -08:00
Mouse Reeve 375385ea6c Pin Postgres version number
Fixes #1218 (maybe?)
2021-07-27 16:33:11 -07:00
bcj 84b525f83e Add a script for pruning old backup files
Adds a pruning script which is installed but not set to run by default.
Also adds for that script that can be run in a container that replicates the db container's conditions
2021-03-08 23:16:34 -06:00
bcj 015d45ef99 Start cron on db service start
init.d isn't run when docker containers are run so we need to modify the entrypoint.
This commit makes the ugly choice of injecting the command in automatically in order to avoid the need to manually maintain the images entrypoint.
2021-03-08 23:09:54 -06:00
Mouse Reeve d19405f379 fixes backup script name 2020-10-29 23:10:40 -07:00
Mouse Reeve d3987756eb Removes hanging cron command 2020-10-28 16:10:50 -07:00
Mouse Reeve 687ff5a6d7 Gets database cron into the right image 2020-10-28 15:56:25 -07:00