Array for logs implementation

This commit is contained in:
David Petric
2023-02-13 15:06:07 +01:00
parent 629e3c1631
commit bc0480689d
3 changed files with 68 additions and 52 deletions

View File

@@ -30,11 +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_backup_web | true/false | Backup web app logs |
| apache | true/false | Enable Apache logs |
| nginx | true/false | Enable nginx logs |
| fail2ban_log | true/false | Enable fail2ban logs |
| log_purge | true/false | Truncate logs after backup |
| log_to_backup |array | Array of logs to backup, options: apache, nginx, fail2ban, system |
| 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 |