updated script to work in new location closer to Mastodon code
This commit is contained in:
parent
71cd801c19
commit
57f93492aa
4 changed files with 8 additions and 27 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1 @@
|
||||||
default-docker-compose.conf
|
*.conf
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
SHELL=/bin/sh
|
SHELL=/bin/bash
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
#
|
#
|
||||||
# run system backups
|
# run system backups
|
||||||
#
|
#
|
||||||
# hourly - at 5 minutes past mon-sat
|
# hourly - at 5 minutes past mon-sat
|
||||||
05 * * * * root /etc/dbbackup/dbbackup-docker-compose --hourly
|
25 * * * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --hourly
|
||||||
#
|
#
|
||||||
# daily - at 7:30 pm, mon-sat
|
# daily - at 7:30 pm, mon-sat
|
||||||
30 19 * * * root /etc/dbbackup/dbbackup-docker-compose --daily
|
30 19 * * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --daily
|
||||||
#
|
#
|
||||||
# weekly - at 7:30 pm, sun
|
# weekly - at 7:30 pm, sun
|
||||||
30 19 * * sun root /etc/dbbackup/dbbackup-docker-compose --weekly
|
30 19 * * sun root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --weekly
|
||||||
#
|
#
|
||||||
# monthly - at 8:30 pm, on the first of the last of the month
|
# monthly - at 8:30 pm, on the first of the last of the month
|
||||||
30 20 1 * * root /etc/dbbackup/dbbackup-docker-compose --monthly
|
30 20 1 * * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf --monthly
|
||||||
#
|
#
|
||||||
# yearly - at 8:30 pm, on the first of January.
|
# yearly - at 8:30 pm, on the first of January.
|
||||||
30 20 1 1 * root /etc/dbbackup/dbbackup-docker-compose --yearly
|
30 20 1 1 * root /home/data/mastodon.oeru.org/scripts/dbbackup/dbbackup-docker-compose -c /home/data/mastodon.oeru.org/scripts/dbbackup/mastodon.conf--yearly
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ VERBOSE=0
|
||||||
#
|
#
|
||||||
# Stuff that should be universal for this install...
|
# Stuff that should be universal for this install...
|
||||||
# where we can find this app...
|
# where we can find this app...
|
||||||
MAIN_DIR=/etc/dbbackup
|
#MAIN_DIR=`pwd`
|
||||||
# determine today's date
|
# determine today's date
|
||||||
DATE=`date '+%Y-%m-%d-%a'`
|
DATE=`date '+%Y-%m-%d-%a'`
|
||||||
# determine today's date
|
# determine today's date
|
||||||
|
|
|
@ -1,19 +0,0 @@
|
||||||
#
|
|
||||||
# SQL dump backup directory
|
|
||||||
#
|
|
||||||
BU_DIR=/home/data/mastodon/backup
|
|
||||||
#
|
|
||||||
# Docker Compose details
|
|
||||||
#
|
|
||||||
# dir containing the docker-compose.yml
|
|
||||||
DC_DIR=/home/docker/mastodon
|
|
||||||
# name of the database container
|
|
||||||
DC_CONTAINER=postgres
|
|
||||||
# Command to dump the relevant database(s)
|
|
||||||
DUMP_CMD='pg_dumpall -c -U postgres'
|
|
||||||
#
|
|
||||||
# Reporting
|
|
||||||
#
|
|
||||||
# email address to send reports to, and subject
|
|
||||||
EMAIL=webmaster@oerfoundation.org
|
|
||||||
EMAIL_SUBJ="Mastodon on OERu Open Postgres Backup Report"
|
|
Loading…
Reference in a new issue