diff --git a/README.MD b/README.MD index 3ab8f1b..b3420e5 100644 --- a/README.MD +++ b/README.MD @@ -30,7 +30,7 @@ All configuration options can be found in the `backup.cfg` file. The script has | vhost_backup | true/false | Backup of the vhost configuration | | vhost_dir | ------> | Path to the vhost files | | log_backup | true/false | Backup log files | -| log_to_backup |array | Array of logs to backup, options: apache, nginx, fail2ban, alternatives, pckg_mngr, auth, dmesg, dpkg, letsencrypt, php, syslog| +| log_to_backup |array | Array of logs to backup, options: apache, nginx, fail2ban, alternatives, pckg_mngr, auth, dmesg, dpkg, letsencrypt, php, syslog, purge (truncate all)| | rsync_push | true/false | Push the backup file to a remote server | | push_clean | true/false | Delete the backup file after push | | target_host | ------> | Backup push target host | diff --git a/backup.cfg b/backup.cfg index 497c4f0..34744c5 100644 --- a/backup.cfg +++ b/backup.cfg @@ -9,8 +9,8 @@ www_dir='xyz' # wwwroot location vhost_backup=false # backup vhost config vhost_dir='/etc/httpd/sites-enabled' # vhost location log_backup=false # backup logs -log_to_backup=("apache" "nginx" "fail2ban" "alternatives" "pckg_mngr" "auth" "dmesg" "dpkg" "letsencrypt" "php" "syslog" ) -# logs to backup, options: apache, nginx, fail2ban, alternatives, pckg_mngr, auth, dmesg, dpkg, letsencrypt, php, syslog) +log_to_backup=("apache" "nginx" "fail2ban" "alternatives" "pckg_mngr" "auth" "dmesg" "dpkg" "letsencrypt" "php" "syslog" "purge") +# logs to backup, options: apache, nginx, fail2ban, alternatives, 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