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.

backups.conf.example 842B

12345678910111213141516171819202122232425
  1. # This file is a shell script that is sourced at the start of the backup script.
  2. # Feel free to hack on it as you like.
  3. # Only the first parameter is required.
  4. __BACKUP_DIR=/tmp/backups
  5. # __BACKUP_DIR_POSTGRES=/tmp/postgres_backups
  6. # __BACKUP_DIR_DOCKER=/tmp/docker_backups
  7. # __BACKUP_DIR_CONFIGS=/tmp/configs_dir
  8. # The default compression format. Can be anything tar(1) recognizes. Optional.
  9. __BACKUP_EXT=".tar.gz"
  10. # Purge the backups older than this value in days (find -ctime +DAYS). Optional.
  11. __BACKUP_AGE=2
  12. # A bash array containing the files/directories you want to save.
  13. # Required (if a -c or an -a backup is run).
  14. __BACKUP_FILES=(
  15. /etc/backups.conf
  16. /etc/postgresql
  17. )
  18. # A list of databases you want to back up while the -p backup is running.
  19. # Required (if you run the script with -p).
  20. __BACKUP_DATABASES=(
  21. template1
  22. )