#!/bin/bash # -------------------------------------------------------- # Please double check Your settings # -------------------------------------------------------- enabled=false #enable the script backup_path='/opt/backify/' # where do you want backups saved www_backup=false # backup wwwroot www_dir='xyz' # location of wwwroot to backup vhost_backup=false # backup vhost configurations vhost_dir='/etc/httpd/sites-enabled' # location of active vhost files log_backup=false # backup logs log_to_backup=("apache" "nginx" "fail2ban" "pckg_mngr" "auth" "dmesg" "dpkg" "letsencrypt" "php" "syslog" "purge") # logs to backup, options: apache, nginx, fail2ban, pckg_mngr, auth, dmesg, dpkg, letsencrypt, php, syslog, purge (truncate all)) rsync_push=false # enable push to remote server push_clean=false # clean backup file after push target_host="127.0.0.1" # rsync target host target_user="backup" # rsync target user target_key='/home/xyz/.ssh/rsync' # rsync key target_dir='/opt/backups/srvyxyz/' # rsync target host path docker_enabled=false # will you use docker backup docker_images=false # backup docker images docker_volumes=false #backup docker volumes docker_data=false #backup container information db_backup=false #backup databases database_type=mysql #mysql or postgresql db_username=user #database user db_password=user #database password db_all=false #dumps all databases if true db_name=user #name of the database custom_backup=false #backup custom files or directories custom_dirs=("/opt/example" "/var/log/script.log") #array of custom files and/or directories to backup