Commit d7026652 authored by Fjen Undso's avatar Fjen Undso
Browse files

support parameters for compression

parent 6776efe7
......@@ -8,26 +8,29 @@
# TODO: gpg key encryption
##### BEGIN SETTINGS
# system settings
### system settings
declare -r LOCALDIR="/root/mydumper"
declare -r ADMINMAIL="foo@example.com"
declare -r NUMBACKUPS=30
declare -r USETAR=1 # tar all individual tables from one database
declare -r COMPRESS="xz" # compression tools like gzip, bzip2, xz, lzop
# empty for no compression
# mysql settings
# tar all individual tables from one database
declare -r USETAR=1
# compression tools like gzip, bzip2, xz, lzop
# empty for no compression. parameters allowed
declare -r COMPRESS="xz -T0"
### mysql settings
declare -r MYHOST="localhost"
declare -r MYUSER="root"
declare -r MYPASS=""
declare -r EXLUDEDBS='^(?!(mysql|phpmyadmin|information_schema|performance_schema))'
# ftp/sftp settings
### ftp/sftp settings
declare -r FTPHOST="example.com"
declare -r FTPUSER=""
declare -r FTPPASS=""
declare -r FTPDIR="path/on/ftp"
declare -r FTPTYPE="sftp" # ftp or sftp - leave empty if not desired
declare -r FTPNUMBACKUPS=90
# gpg settings
### gpg settings
declare -r GPGPASS="" # optional gpg symmetrical passphrase
##### END SETTINGS
......@@ -52,7 +55,7 @@ execftp() {
}
### Check prerequisites
for i in mydumper lftp mail tar $COMPRESS; do
for i in mydumper lftp mail tar ${COMPRESS%% *}; do
if [ ! "$(which $i)" ]; then
fail "Error: prerequisite $i not found in PATH"
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment