A simple backup script
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
backup/backups.conf.example

25 lines
826 B

# This file is a shell script that is sourced at the start of the backup script.
# Feel free to hack on it as you like.
# Only the first parameter is required.
BACKUP_DIR=/tmp/backups
# BACKUP_DIR_POSTGRES=/tmp/postgres_backups
# BACKUP_DIR_DOCKER=/tmp/docker_backups
# BACKUP_DIR_CONFIGS=/tmp/configs_dir
# The default compression format. Can be anything tar(1) recognizes. Optional.
BACKUP_EXT=".tar.gz"
# Purge the backups older than this value in days (find -ctime +DAYS). Optional.
BACKUP_AGE=2
# A bash array containing the files/directories you want to save.
# Required (if a -c or an -a backup is run).
BACKUP_FILES=(
/etc/backups.conf
/etc/postgresql
)
# A list of databases you want to back up while the -p backup is running.
# Required (if you run the script with -p).
BACKUP_DATABASES=(
template1
)