mirror of
https://github.com/deajan/obackup.git
synced 2024-12-04 20:53:41 +01:00
Updated config files using update script
This commit is contained in:
parent
c8fb0de3ee
commit
bf78921600
@ -3,7 +3,7 @@
|
|||||||
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
||||||
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[GENERAL]
|
||||||
CONFIG_FILE_REVISION=2.1
|
CONFIG_FILE_REVISION=2.1
|
||||||
|
|
||||||
## Backup identification string.
|
## Backup identification string.
|
||||||
@ -20,7 +20,7 @@ FILE_BACKUP=yes
|
|||||||
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
||||||
BACKUP_TYPE=local
|
BACKUP_TYPE=local
|
||||||
|
|
||||||
###### BACKUP STORAGE
|
[BACKUP STORAGE]
|
||||||
|
|
||||||
## Storage paths of the backups (absolute paths of the local or remote system)
|
## Storage paths of the backups (absolute paths of the local or remote system)
|
||||||
SQL_STORAGE="${HOME}/obackup-storage/sql-local"
|
SQL_STORAGE="${HOME}/obackup-storage/sql-local"
|
||||||
@ -34,6 +34,8 @@ CRYPT_STORAGE="${HOME}/obackup-storage/crypt-local"
|
|||||||
|
|
||||||
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
||||||
GPG_RECIPIENT="John Doe"
|
GPG_RECIPIENT="John Doe"
|
||||||
|
PARALLEL_ENCRYPTION_PROCESSES=""
|
||||||
|
|
||||||
|
|
||||||
## Create backup directories if they do not exist
|
## Create backup directories if they do not exist
|
||||||
CREATE_DIRS=yes
|
CREATE_DIRS=yes
|
||||||
@ -53,13 +55,17 @@ GET_BACKUP_SIZE=yes
|
|||||||
SQL_WARN_MIN_SPACE=1048576
|
SQL_WARN_MIN_SPACE=1048576
|
||||||
FILE_WARN_MIN_SPACE=1048576
|
FILE_WARN_MIN_SPACE=1048576
|
||||||
|
|
||||||
###### REMOTE ONLY OPTIONS
|
[REMOTE_OPTIONS]
|
||||||
|
|
||||||
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
||||||
REMOTE_SYSTEM_URI="ssh://backupuser@remote.system.tld:22/"
|
REMOTE_SYSTEM_URI="ssh://backupuser@remote.system.tld:22/"
|
||||||
|
|
||||||
## You can specify a RSA key (please use full path). If not defined, the default ~/.ssh/id_rsa will be used. See documentation for further information.
|
## You can specify a RSA key (please use full path). If not defined, the default ~/.ssh/id_rsa will be used. See documentation for further information.
|
||||||
SSH_RSA_PRIVATE_KEY="${HOME}/.ssh/id_rsa"
|
SSH_RSA_PRIVATE_KEY="${HOME}/.ssh/id_rsa"
|
||||||
|
SSH_PASSWORD_FILE=""
|
||||||
|
_REMOTE_TOKEN="SomeAlphaNumericToken9"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ssh compression should be used unless your remote connection is good enough (LAN)
|
## ssh compression should be used unless your remote connection is good enough (LAN)
|
||||||
SSH_COMPRESSION=yes
|
SSH_COMPRESSION=yes
|
||||||
@ -79,7 +85,7 @@ REMOTE_3RD_PARTY_HOSTS="www.kernel.org www.google.com"
|
|||||||
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
||||||
SUDO_EXEC=no
|
SUDO_EXEC=no
|
||||||
|
|
||||||
###### DATABASE SPECIFIC OPTIONS
|
[DATABASE BACKUP SETTINGS]
|
||||||
|
|
||||||
## Database backup user
|
## Database backup user
|
||||||
SQL_USER=root
|
SQL_USER=root
|
||||||
@ -104,7 +110,7 @@ MYSQLDUMP_OPTIONS="--opt --single-transaction"
|
|||||||
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
||||||
COMPRESSION_LEVEL=3
|
COMPRESSION_LEVEL=3
|
||||||
|
|
||||||
###### FILES SPECIFIC OPTIONS
|
[FILE BACKUP SETTINGS]
|
||||||
|
|
||||||
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
||||||
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
||||||
@ -134,6 +140,8 @@ RSYNC_EXCLUDE_FROM=""
|
|||||||
|
|
||||||
## List separator char. You may set an alternative separator char for your directories lists above.
|
## List separator char. You may set an alternative separator char for your directories lists above.
|
||||||
PATH_SEPARATOR_CHAR=";"
|
PATH_SEPARATOR_CHAR=";"
|
||||||
|
RSYNC_OPTIONAL_ARGS=""
|
||||||
|
|
||||||
|
|
||||||
## Preserve basic linux permissions
|
## Preserve basic linux permissions
|
||||||
PRESERVE_PERMISSIONS=yes
|
PRESERVE_PERMISSIONS=yes
|
||||||
@ -177,10 +185,12 @@ BANDWIDTH=0
|
|||||||
## Paranoia option. Don't change this unless you read the documentation.
|
## Paranoia option. Don't change this unless you read the documentation.
|
||||||
RSYNC_EXECUTABLE=rsync
|
RSYNC_EXECUTABLE=rsync
|
||||||
|
|
||||||
###### ALERT OPTIONS
|
[ALERT_OPTIONS]
|
||||||
|
|
||||||
## Alert email addresses separated by a space character
|
## Alert email addresses separated by a space character
|
||||||
DESTINATION_MAILS=""
|
DESTINATION_MAILS=""
|
||||||
|
MAIL_BODY_CHARSET=""
|
||||||
|
|
||||||
|
|
||||||
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
||||||
SENDER_MAIL="alert@your.system.tld"
|
SENDER_MAIL="alert@your.system.tld"
|
||||||
@ -191,7 +201,7 @@ SMTP_ENCRYPTION=none
|
|||||||
SMTP_USER=
|
SMTP_USER=
|
||||||
SMTP_PASSWORD=
|
SMTP_PASSWORD=
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[BACKUP SETTINGS]
|
||||||
|
|
||||||
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
||||||
## Hard max exec time generates a warning and stops the whole backup execution.
|
## Hard max exec time generates a warning and stops the whole backup execution.
|
||||||
@ -207,7 +217,7 @@ ROTATE_SQL_COPIES=7
|
|||||||
ROTATE_FILE_BACKUPS=yes
|
ROTATE_FILE_BACKUPS=yes
|
||||||
ROTATE_FILE_COPIES=7
|
ROTATE_FILE_COPIES=7
|
||||||
|
|
||||||
###### EXECUTION HOOKS
|
[EXECUTION_HOOKS]
|
||||||
|
|
||||||
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
||||||
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
||||||
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[GENERAL]
|
||||||
CONFIG_FILE_REVISION=2.1
|
CONFIG_FILE_REVISION=2.1
|
||||||
|
|
||||||
## Backup identification string.
|
## Backup identification string.
|
||||||
@ -20,7 +20,7 @@ FILE_BACKUP=yes
|
|||||||
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
||||||
BACKUP_TYPE=local
|
BACKUP_TYPE=local
|
||||||
|
|
||||||
###### BACKUP STORAGE
|
[BACKUP STORAGE]
|
||||||
|
|
||||||
## Storage paths of the backups (absolute paths of the local or remote system)
|
## Storage paths of the backups (absolute paths of the local or remote system)
|
||||||
SQL_STORAGE="${HOME}/obackup-storage/sql"
|
SQL_STORAGE="${HOME}/obackup-storage/sql"
|
||||||
@ -28,6 +28,12 @@ FILE_STORAGE="${HOME}/obackup-storage/files"
|
|||||||
|
|
||||||
## Backup encryption using GPG and duplicity. Feature not ready yet.
|
## Backup encryption using GPG and duplicity. Feature not ready yet.
|
||||||
ENCRYPTION=no
|
ENCRYPTION=no
|
||||||
|
CRYPT_STORAGE="/home/storage/crypt"
|
||||||
|
GPG_RECIPIENT="Your Name used with GPG signature"
|
||||||
|
PARALLEL_ENCRYPTION_PROCESSES=""
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Create backup directories if they do not exist
|
## Create backup directories if they do not exist
|
||||||
CREATE_DIRS=yes
|
CREATE_DIRS=yes
|
||||||
@ -47,13 +53,17 @@ GET_BACKUP_SIZE=yes
|
|||||||
SQL_WARN_MIN_SPACE=1048576
|
SQL_WARN_MIN_SPACE=1048576
|
||||||
FILE_WARN_MIN_SPACE=1048576
|
FILE_WARN_MIN_SPACE=1048576
|
||||||
|
|
||||||
###### REMOTE ONLY OPTIONS
|
[REMOTE_OPTIONS]
|
||||||
|
|
||||||
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
||||||
REMOTE_SYSTEM_URI="ssh://backupuser@remote.system.tld:22/"
|
REMOTE_SYSTEM_URI="ssh://backupuser@remote.system.tld:22/"
|
||||||
|
|
||||||
## You can specify a RSA key (please use full path). If not defined, the default ~/.ssh/id_rsa will be used. See documentation for further information.
|
## You can specify a RSA key (please use full path). If not defined, the default ~/.ssh/id_rsa will be used. See documentation for further information.
|
||||||
SSH_RSA_PRIVATE_KEY="${HOME}/.ssh/id_rsa"
|
SSH_RSA_PRIVATE_KEY="${HOME}/.ssh/id_rsa"
|
||||||
|
SSH_PASSWORD_FILE=""
|
||||||
|
_REMOTE_TOKEN="SomeAlphaNumericToken9"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## ssh compression should be used unless your remote connection is good enough (LAN)
|
## ssh compression should be used unless your remote connection is good enough (LAN)
|
||||||
SSH_COMPRESSION=yes
|
SSH_COMPRESSION=yes
|
||||||
@ -73,7 +83,7 @@ REMOTE_3RD_PARTY_HOSTS="www.kernel.org www.google.com"
|
|||||||
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
||||||
SUDO_EXEC=no
|
SUDO_EXEC=no
|
||||||
|
|
||||||
###### DATABASE SPECIFIC OPTIONS
|
[DATABASE BACKUP SETTINGS]
|
||||||
|
|
||||||
## Database backup user
|
## Database backup user
|
||||||
SQL_USER=root
|
SQL_USER=root
|
||||||
@ -98,7 +108,7 @@ MYSQLDUMP_OPTIONS="--opt --single-transaction"
|
|||||||
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
||||||
COMPRESSION_LEVEL=3
|
COMPRESSION_LEVEL=3
|
||||||
|
|
||||||
###### FILES SPECIFIC OPTIONS
|
[FILE BACKUP SETTINGS]
|
||||||
|
|
||||||
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
||||||
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
||||||
@ -128,6 +138,8 @@ RSYNC_EXCLUDE_FROM=""
|
|||||||
|
|
||||||
## List separator char. You may set an alternative separator char for your directories lists above.
|
## List separator char. You may set an alternative separator char for your directories lists above.
|
||||||
PATH_SEPARATOR_CHAR=";"
|
PATH_SEPARATOR_CHAR=";"
|
||||||
|
RSYNC_OPTIONAL_ARGS=""
|
||||||
|
|
||||||
|
|
||||||
## Preserve basic linux permissions
|
## Preserve basic linux permissions
|
||||||
PRESERVE_PERMISSIONS=yes
|
PRESERVE_PERMISSIONS=yes
|
||||||
@ -171,10 +183,12 @@ BANDWIDTH=0
|
|||||||
## Paranoia option. Don't change this unless you read the documentation.
|
## Paranoia option. Don't change this unless you read the documentation.
|
||||||
RSYNC_EXECUTABLE=rsync
|
RSYNC_EXECUTABLE=rsync
|
||||||
|
|
||||||
###### ALERT OPTIONS
|
[ALERT_OPTIONS]
|
||||||
|
|
||||||
## Alert email addresses separated by a space character
|
## Alert email addresses separated by a space character
|
||||||
DESTINATION_MAILS=""
|
DESTINATION_MAILS=""
|
||||||
|
MAIL_BODY_CHARSET=""
|
||||||
|
|
||||||
|
|
||||||
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
||||||
SENDER_MAIL="alert@your.system.tld"
|
SENDER_MAIL="alert@your.system.tld"
|
||||||
@ -185,7 +199,7 @@ SMTP_ENCRYPTION=none
|
|||||||
SMTP_USER=
|
SMTP_USER=
|
||||||
SMTP_PASSWORD=
|
SMTP_PASSWORD=
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[BACKUP SETTINGS]
|
||||||
|
|
||||||
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
||||||
## Hard max exec time generates a warning and stops the whole backup execution.
|
## Hard max exec time generates a warning and stops the whole backup execution.
|
||||||
@ -201,7 +215,7 @@ ROTATE_SQL_COPIES=7
|
|||||||
ROTATE_FILE_BACKUPS=no
|
ROTATE_FILE_BACKUPS=no
|
||||||
ROTATE_FILE_COPIES=7
|
ROTATE_FILE_COPIES=7
|
||||||
|
|
||||||
###### EXECUTION HOOKS
|
[EXECUTION_HOOKS]
|
||||||
|
|
||||||
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
||||||
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
||||||
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[GENERAL]
|
||||||
CONFIG_FILE_REVISION=2.1
|
CONFIG_FILE_REVISION=2.1
|
||||||
|
|
||||||
## Backup identification string.
|
## Backup identification string.
|
||||||
@ -20,7 +20,7 @@ FILE_BACKUP=yes
|
|||||||
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
||||||
BACKUP_TYPE=pull
|
BACKUP_TYPE=pull
|
||||||
|
|
||||||
###### BACKUP STORAGE
|
[BACKUP STORAGE]
|
||||||
|
|
||||||
## Storage paths of the backups (absolute paths of the local or remote system)
|
## Storage paths of the backups (absolute paths of the local or remote system)
|
||||||
SQL_STORAGE="${HOME}/obackup-storage/sql-pull"
|
SQL_STORAGE="${HOME}/obackup-storage/sql-pull"
|
||||||
@ -34,6 +34,8 @@ CRYPT_STORAGE="${HOME}/obackup-storage/crypt-pull"
|
|||||||
|
|
||||||
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
||||||
GPG_RECIPIENT="John Doe"
|
GPG_RECIPIENT="John Doe"
|
||||||
|
PARALLEL_ENCRYPTION_PROCESSES=""
|
||||||
|
|
||||||
|
|
||||||
## Create backup directories if they do not exist
|
## Create backup directories if they do not exist
|
||||||
CREATE_DIRS=yes
|
CREATE_DIRS=yes
|
||||||
@ -53,7 +55,7 @@ GET_BACKUP_SIZE=yes
|
|||||||
SQL_WARN_MIN_SPACE=1048576
|
SQL_WARN_MIN_SPACE=1048576
|
||||||
FILE_WARN_MIN_SPACE=1048576
|
FILE_WARN_MIN_SPACE=1048576
|
||||||
|
|
||||||
###### REMOTE ONLY OPTIONS
|
[REMOTE_OPTIONS]
|
||||||
|
|
||||||
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
||||||
REMOTE_SYSTEM_URI="ssh://root@localhost:44999./"
|
REMOTE_SYSTEM_URI="ssh://root@localhost:44999./"
|
||||||
@ -84,7 +86,7 @@ REMOTE_3RD_PARTY_HOSTS="www.kernel.org www.google.com"
|
|||||||
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
||||||
SUDO_EXEC=no
|
SUDO_EXEC=no
|
||||||
|
|
||||||
###### DATABASE SPECIFIC OPTIONS
|
[DATABASE BACKUP SETTINGS]
|
||||||
|
|
||||||
## Database backup user
|
## Database backup user
|
||||||
SQL_USER=root
|
SQL_USER=root
|
||||||
@ -109,7 +111,7 @@ MYSQLDUMP_OPTIONS="--opt --single-transaction"
|
|||||||
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
||||||
COMPRESSION_LEVEL=3
|
COMPRESSION_LEVEL=3
|
||||||
|
|
||||||
###### FILES SPECIFIC OPTIONS
|
[FILE BACKUP SETTINGS]
|
||||||
|
|
||||||
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
||||||
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
||||||
@ -139,6 +141,8 @@ RSYNC_EXCLUDE_FROM=""
|
|||||||
|
|
||||||
## List separator char. You may set an alternative separator char for your directories lists above.
|
## List separator char. You may set an alternative separator char for your directories lists above.
|
||||||
PATH_SEPARATOR_CHAR=";"
|
PATH_SEPARATOR_CHAR=";"
|
||||||
|
RSYNC_OPTIONAL_ARGS=""
|
||||||
|
|
||||||
|
|
||||||
## Preserve basic linux permissions
|
## Preserve basic linux permissions
|
||||||
PRESERVE_PERMISSIONS=yes
|
PRESERVE_PERMISSIONS=yes
|
||||||
@ -182,10 +186,12 @@ BANDWIDTH=0
|
|||||||
## Paranoia option. Don't change this unless you read the documentation.
|
## Paranoia option. Don't change this unless you read the documentation.
|
||||||
RSYNC_EXECUTABLE=rsync
|
RSYNC_EXECUTABLE=rsync
|
||||||
|
|
||||||
###### ALERT OPTIONS
|
[ALERT_OPTIONS]
|
||||||
|
|
||||||
## Alert email addresses separated by a space character
|
## Alert email addresses separated by a space character
|
||||||
DESTINATION_MAILS=""
|
DESTINATION_MAILS=""
|
||||||
|
MAIL_BODY_CHARSET=""
|
||||||
|
|
||||||
|
|
||||||
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
||||||
SENDER_MAIL="alert@your.system.tld"
|
SENDER_MAIL="alert@your.system.tld"
|
||||||
@ -196,7 +202,7 @@ SMTP_ENCRYPTION=none
|
|||||||
SMTP_USER=
|
SMTP_USER=
|
||||||
SMTP_PASSWORD=
|
SMTP_PASSWORD=
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[BACKUP SETTINGS]
|
||||||
|
|
||||||
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
||||||
## Hard max exec time generates a warning and stops the whole backup execution.
|
## Hard max exec time generates a warning and stops the whole backup execution.
|
||||||
@ -212,7 +218,7 @@ ROTATE_SQL_COPIES=7
|
|||||||
ROTATE_FILE_BACKUPS=yes
|
ROTATE_FILE_BACKUPS=yes
|
||||||
ROTATE_FILE_COPIES=7
|
ROTATE_FILE_COPIES=7
|
||||||
|
|
||||||
###### EXECUTION HOOKS
|
[EXECUTION_HOOKS]
|
||||||
|
|
||||||
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
||||||
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
###### obackup - Local or Remote, push or pull backup script for files & mysql databases
|
||||||
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
###### (C) 2013-2016 by Orsiris de Jong (www.netpower.fr)
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[GENERAL]
|
||||||
CONFIG_FILE_REVISION=2.1
|
CONFIG_FILE_REVISION=2.1
|
||||||
|
|
||||||
## Backup identification string.
|
## Backup identification string.
|
||||||
@ -20,7 +20,7 @@ FILE_BACKUP=yes
|
|||||||
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
## Pulled backups are the safest option, as the backup server contains the RSA key and cannot be compromised by another server.
|
||||||
BACKUP_TYPE=push
|
BACKUP_TYPE=push
|
||||||
|
|
||||||
###### BACKUP STORAGE
|
[BACKUP STORAGE]
|
||||||
|
|
||||||
## Storage paths of the backups (absolute paths of the local or remote system)
|
## Storage paths of the backups (absolute paths of the local or remote system)
|
||||||
SQL_STORAGE="${HOME}/obackup-storage/sql-push"
|
SQL_STORAGE="${HOME}/obackup-storage/sql-push"
|
||||||
@ -34,6 +34,8 @@ CRYPT_STORAGE="${HOME}/obackup-storage/crypt-push"
|
|||||||
|
|
||||||
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
## GPG recipient (pubkey for this recipient must exist, see gpg2 --list-keys or gpg --list-keys
|
||||||
GPG_RECIPIENT="John Doe"
|
GPG_RECIPIENT="John Doe"
|
||||||
|
PARALLEL_ENCRYPTION_PROCESSES=""
|
||||||
|
|
||||||
|
|
||||||
## Create backup directories if they do not exist
|
## Create backup directories if they do not exist
|
||||||
CREATE_DIRS=yes
|
CREATE_DIRS=yes
|
||||||
@ -53,7 +55,7 @@ GET_BACKUP_SIZE=yes
|
|||||||
SQL_WARN_MIN_SPACE=1048576
|
SQL_WARN_MIN_SPACE=1048576
|
||||||
FILE_WARN_MIN_SPACE=1048576
|
FILE_WARN_MIN_SPACE=1048576
|
||||||
|
|
||||||
###### REMOTE ONLY OPTIONS
|
[REMOTE_OPTIONS]
|
||||||
|
|
||||||
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
## In case of pulled or pushed backups, remote system URI needs to be supplied.
|
||||||
REMOTE_SYSTEM_URI="ssh://root@localhost:44999./"
|
REMOTE_SYSTEM_URI="ssh://root@localhost:44999./"
|
||||||
@ -84,7 +86,7 @@ REMOTE_3RD_PARTY_HOSTS="www.kernel.org www.google.com"
|
|||||||
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
## If enabled, commands will be executed as superuser on remote side. See documentation for /etc/sudoers configuration ("find", "du", "tee" and "rsync" need to be allowed). Requiretty needs to be disabled.
|
||||||
SUDO_EXEC=no
|
SUDO_EXEC=no
|
||||||
|
|
||||||
###### DATABASE SPECIFIC OPTIONS
|
[DATABASE BACKUP SETTINGS]
|
||||||
|
|
||||||
## Database backup user
|
## Database backup user
|
||||||
SQL_USER=root
|
SQL_USER=root
|
||||||
@ -109,7 +111,7 @@ MYSQLDUMP_OPTIONS="--opt --single-transaction"
|
|||||||
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
## Generally, level 5 is a good compromise between cpu, memory hunger and compress ratio. Gzipped files are set to be rsyncable.
|
||||||
COMPRESSION_LEVEL=3
|
COMPRESSION_LEVEL=3
|
||||||
|
|
||||||
###### FILES SPECIFIC OPTIONS
|
[FILE BACKUP SETTINGS]
|
||||||
|
|
||||||
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
## File backups are divided in tasks. Every directory in DIRECTORY_LIST will be processed as a unique task.
|
||||||
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
## Every subdirectory of each directory in RECURSIVE_DIRECTORY_LIST will be processed as a unique task.
|
||||||
@ -139,6 +141,8 @@ RSYNC_EXCLUDE_FROM=""
|
|||||||
|
|
||||||
## List separator char. You may set an alternative separator char for your directories lists above.
|
## List separator char. You may set an alternative separator char for your directories lists above.
|
||||||
PATH_SEPARATOR_CHAR=";"
|
PATH_SEPARATOR_CHAR=";"
|
||||||
|
RSYNC_OPTIONAL_ARGS=""
|
||||||
|
|
||||||
|
|
||||||
## Preserve basic linux permissions
|
## Preserve basic linux permissions
|
||||||
PRESERVE_PERMISSIONS=yes
|
PRESERVE_PERMISSIONS=yes
|
||||||
@ -182,10 +186,12 @@ BANDWIDTH=0
|
|||||||
## Paranoia option. Don't change this unless you read the documentation.
|
## Paranoia option. Don't change this unless you read the documentation.
|
||||||
RSYNC_EXECUTABLE=rsync
|
RSYNC_EXECUTABLE=rsync
|
||||||
|
|
||||||
###### ALERT OPTIONS
|
[ALERT_OPTIONS]
|
||||||
|
|
||||||
## Alert email addresses separated by a space character
|
## Alert email addresses separated by a space character
|
||||||
DESTINATION_MAILS=""
|
DESTINATION_MAILS=""
|
||||||
|
MAIL_BODY_CHARSET=""
|
||||||
|
|
||||||
|
|
||||||
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
## Windows specific (msys / cygwin environment) only mail options (used with mailsend.exe from muquit, http://github.com/muquit/mailsend or from sendemail.exe from Brandon Zehm, http://caspian.dotconf.net/menu/Software/SendEmail/
|
||||||
SENDER_MAIL="alert@your.system.tld"
|
SENDER_MAIL="alert@your.system.tld"
|
||||||
@ -196,7 +202,7 @@ SMTP_ENCRYPTION=none
|
|||||||
SMTP_USER=
|
SMTP_USER=
|
||||||
SMTP_PASSWORD=
|
SMTP_PASSWORD=
|
||||||
|
|
||||||
###### GENERAL BACKUP OPTIONS
|
[BACKUP SETTINGS]
|
||||||
|
|
||||||
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
## Max execution time of whole backup process. Soft max exec time generates a warning only.
|
||||||
## Hard max exec time generates a warning and stops the whole backup execution.
|
## Hard max exec time generates a warning and stops the whole backup execution.
|
||||||
@ -212,7 +218,7 @@ ROTATE_SQL_COPIES=7
|
|||||||
ROTATE_FILE_BACKUPS=yes
|
ROTATE_FILE_BACKUPS=yes
|
||||||
ROTATE_FILE_COPIES=7
|
ROTATE_FILE_COPIES=7
|
||||||
|
|
||||||
###### EXECUTION HOOKS
|
[EXECUTION_HOOKS]
|
||||||
|
|
||||||
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
## Commands can will be run before and / or after backup execution (remote execution will only happen if REMOTE_BACKUP is set).
|
||||||
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
## This is useful to make a snapshot before backing up data, or even handle snapshots of backed up data.
|
||||||
|
Loading…
Reference in New Issue
Block a user