diff --git a/backup-instructions-example.conf b/backup-instructions-example.conf index 45fdfb3..2f1b567 100644 --- a/backup-instructions-example.conf +++ b/backup-instructions-example.conf @@ -1,68 +1,87 @@ ################################################################ # # Instructions for the micro-backup-script # # See: # https://gitpull.it/source/micro-backup-script/ # # Notes: # This is the name of the expected configuration file: # backup-instructions.conf # # This is just an example: # backup-instructions-example.conf ################################################################ -# backup all server configurations -backup_path /etc +# backup some server configurations +#backup_path /etc +backup_path /etc/cron* +backup_path /etc/fstab +backup_path /etc/group +backup_path /etc/passwd +backup_path /etc/hostname +backup_path /etc/hosts +backup_path /etc/logrotate.d +backup_path /etc/issue +backup_path /etc/motd +backup_path /etc/networks +backup_path /etc/NetworkManager +backup_path /etc/shadow +backup_path /etc/sudoers +backup_path /etc/sudoers.d +backup_path /etc/systemd +backup_path /etc/sysctl.d +backup_path /etc/ssh +backup_path /etc/timezone +backup_path /etc/zabbix # backup all system logs backup_path /var/log # backup just last lines of some system logs #backup_last_log_lines /var/log/secure #backup_last_log_lines /var/log/audit/audit.log # backup crontab etc. backup_path /var/spool/cron backup_path /var/spool/mail # backup a custom file backup_path /opt/tomcat/webapps/IDOM.war backup_last_log_lines /opt/tomcat/logs/IDOM.log # uncomment to skip some databases # note that as default we skip a couple of system databases #skip_database '^something$' #skip_database '^something[0-9]else$' # uncomment to skip data from specific database tables and just keep their schema #skip_database_table_data IDOM event #skip_database_table_data IDOM alarm # this is just an example that has sense in most machines # since a Zabbix Proxy doesn't make much sense: it's enough # to have a backup of your central Zabbix Server. skip_database '^zabbix_proxy$' # backup every single database (but not the skipped ones) backup_every_database # uncomment to backup just a single database #backup_database DATABASE_NAME # uncomment to backup some local files using a pattern or something like that #backup_paths /var/log/X* # uncomment to backup an host reachable via ssh #backup_host_dir 127.1.2.3:/home mega-server-stuff/home # uncomment to backup (pull) an host reachable via ssh #backup_host_file 127.1.2.3:/tmp/file.war mega-server-stuff/wars # uncomment to push something to another host (even on a custom port) #push_path_host /tmp/something host:/path #push_path_host /tmp/something host:/path 2222 # push the local "daily/" directory into an host on the specified location #push_daily_directory example.com:/home/backups/something/daily