Add forgoten purging option to array

This commit is contained in:
gospodar 2023-02-22 17:42:07 +01:00
parent aef0f7dc32
commit e6adba12b2
2 changed files with 3 additions and 3 deletions

View File

@ -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_backup | true/false | Backup of the vhost configuration |
| vhost_dir | ------> | Path to the vhost files | | vhost_dir | ------> | Path to the vhost files |
| log_backup | true/false | Backup log 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 | | rsync_push | true/false | Push the backup file to a remote server |
| push_clean | true/false | Delete the backup file after push | | push_clean | true/false | Delete the backup file after push |
| target_host | ------> | Backup push target host | | target_host | ------> | Backup push target host |

View File

@ -9,8 +9,8 @@ www_dir='xyz' # wwwroot location
vhost_backup=false # backup vhost config vhost_backup=false # backup vhost config
vhost_dir='/etc/httpd/sites-enabled' # vhost location vhost_dir='/etc/httpd/sites-enabled' # vhost location
log_backup=false # backup logs log_backup=false # backup logs
log_to_backup=("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) # 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 rsync_push=false # enable push to remote server
push_clean=false # clean backup file after push push_clean=false # clean backup file after push
target_host="127.0.0.1" # rsync target host target_host="127.0.0.1" # rsync target host