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.

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_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.
# Purge the backups older than this value in days (find -ctime +DAYS). Optional.
# A bash array containing the files/directories you want to save.
# Required (if a -c or an -a backup is run).
# A list of databases you want to back up while the -p backup is running.
# Required (if you run the script with -p).