Backify/backup.cfg

31 lines
1.5 KiB
INI
Raw Normal View History

2023-02-10 14:43:57 +00:00
#!/bin/bash
# --------------------------------------------------------
# Please double check Your settings
# --------------------------------------------------------
2023-02-22 18:42:00 +00:00
enabled=false #enable the script
backup_path='/opt/backify/' # where do you want backups saved
2023-02-10 14:43:57 +00:00
www_backup=false # backup wwwroot
2023-02-22 18:42:00 +00:00
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
2023-02-10 14:43:57 +00:00
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
2023-02-10 15:51:49 +00:00
target_host="127.0.0.1" # rsync target host
target_user="backup" # rsync target user
target_key='/home/xyz/.ssh/rsync' # rsync key
2023-02-12 12:26:12 +00:00
target_dir='/opt/backups/srvyxyz/' # rsync target host path
docker_enabled=false # will you use docker backup
docker_images=false # backup docker images
2023-02-10 19:40:11 +00:00
docker_volumes=false #backup docker volumes
2023-02-11 10:49:22 +00:00
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
2023-02-11 10:58:21 +00:00
db_all=false #dumps all databases if true
2023-02-22 18:42:00 +00:00
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