diff --git a/backup-instructions-example.conf b/backup-instructions-example.conf index 707f883..70b0afc 100644 --- a/backup-instructions-example.conf +++ b/backup-instructions-example.conf @@ -1,55 +1,54 @@ ################################################################ # # Instructions for the micro-backup-script # # See: -# https://sviluppo.erinformatica.it/source/micro-backup-script/ +# https://gitpull.it/source/micro-backup-script/ # # Notes: -# Use the 'backup-instructions-example.conf' file to create an -# 'backup-instructions.conf' file. +# This is the name of the expected configuration file: +# backup-instructions.conf +# +# This is just an example: +# backup-instructions-example.conf ################################################################ -# backup server configurations +# backup all server configurations backup_path /etc -# backup system logs +# backup all system logs backup_path /var/log # backup crontab etc. backup_path /var/spool # 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$' # 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 +#push_daily_directory example.com:/home/backups/something/daily diff --git a/options-example.conf b/options-example.conf index af1e189..97c7b5a 100644 --- a/options-example.conf +++ b/options-example.conf @@ -1,34 +1,34 @@ # # Generic options for 'micro-backup-script' # # See: -# https://sviluppo.erinformatica.it/source/micro-backup-script/ +# https://gitpull.it/source/micro-backup-script/ # # Notes: # If you have not an options.conf then copy it from options-example.conf # # This file is loaded after 'bootstrap.sh' ####################################################################### # 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 custom flags on local copies with rsync (e.g. verbose mode) #RSYNC="$RSYNC --verbose" # uncomment to set custom bandwidth in KBps and other flags in remote copies with rsyncs # Note: remote copy already use compression so NO need to add here again #RSYNC_REMOTE="$RSYNC_REMOTE --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