diff --git a/backup-instructions-example.conf b/backup-instructions-example.conf index 62a79a6..a2ab2e3 100644 --- a/backup-instructions-example.conf +++ b/backup-instructions-example.conf @@ -1,51 +1,54 @@ ################################################################ # # Instructions for the micro-backup-script # # See: # https://sviluppo.erinformatica.it/source/micro-backup-script/ # # Notes: # Use the 'backup-instructions-example.conf' file to create an # 'backup-instructions.conf' file. ################################################################ # backup server configurations backup_path /etc # backup system logs backup_path /var/log # backup crontab etc. backup_path /var/spool +# backup a custom file +backup_path /opt/tomcat/webapps/IDOM.war + # 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$' # 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 # backup this configuration itself #backup_path /root/scripts/micro-backup-script/backup-instructions.conf #backup_path /root/scripts/micro-backup-script/options.conf # push the local "daily/" directory into an host on the specified location #push_daily_directory sviluppo.erinformatica.it:/home/backups/something/daily diff --git a/options-example.conf b/options-example.conf index 0901396..3c05584 100644 --- a/options-example.conf +++ b/options-example.conf @@ -1,25 +1,28 @@ # # Generic options for 'micro-backup-script' # # See: # https://sviluppo.erinformatica.it/source/micro-backup-script/ # # Notes: # If you have not an options.conf then copy it from options-example.conf ####################################################################### # please uncomment and set here your hostname or something like that #BOX=my-important-server # eventually change the place where you want to put backups (no trailing slash) #BASE=/home/backups # eventually uncomment these if you have custom mysql commands to be root #MYSQL="mysql --defaults-file=/etc/mysql/debian.cnf" #MYSQLDUMP="mysqldump --defaults-file=/etc/mysql/debian.cnf" +# uncomment to set bandwidth in KBps or other flags +RSYNC="$RSYNC --bwlimit=900" + # eventually uncomment to avoid any disservice (e.g. avoid systemctl stop/start) #NO_DISSERVICE=1 # eventually uncomment to test things and do nothing #PORCELAIN=1