diff options
author | Simon Rettberg | 2014-11-18 18:40:49 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-11-18 18:40:49 +0100 |
commit | ecb072b02e1a70555db0fdf4ed47375d3080a074 (patch) | |
tree | 75db05621458eee14a96ff2d825a30072eb06e40 /scripts/system-backup | |
parent | Added class ProxyHandler for for configuring proxy settings system wide once ... (diff) | |
download | tmlite-bwlp-ecb072b02e1a70555db0fdf4ed47375d3080a074.tar.gz tmlite-bwlp-ecb072b02e1a70555db0fdf4ed47375d3080a074.tar.xz tmlite-bwlp-ecb072b02e1a70555db0fdf4ed47375d3080a074.zip |
Many improvements and additions:
- Added task+script for lighttpd https config
- Added task for reloading proxy config
- ldapsearch now supports searching for specific user
- DownloadFile now supports checking file integrity through optional gpg signature
Diffstat (limited to 'scripts/system-backup')
-rwxr-xr-x | scripts/system-backup | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/system-backup b/scripts/system-backup index 666180b..8042b08 100755 --- a/scripts/system-backup +++ b/scripts/system-backup @@ -15,7 +15,7 @@ fi mkdir -p "$DIR" cd "$DIR" || exit 1 -mysqldump --add-locks --defaults-extra-file=/etc/mysql/debian.cnf --default-character-set=utf8 --databases openslx bwLehrpool > db.sql +mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --add-locks --add-drop-database --default-character-set=utf8 --databases openslx bwLehrpool > db.sql RET=$? if [ $RET -ne 0 ]; then echo "Database dump failed with exit code $RET" @@ -25,6 +25,7 @@ fi FILELIST=" /opt/openslx/configs /opt/syncdaemon/config/identity.properties + /etc/lighttpd/server.pem " tar --ignore-failed-read -k -c -p -z -f files.tgz $FILELIST # no quotes here! @@ -46,7 +47,7 @@ fi chown www-data backup.tgz chmod 0600 backup.tgz -FILE="/tmp/bwlp-backup-$(date +%s).tgz" +FILE="/tmp/bwlp-backup-$(date +%s)-${RANDOM}.tgz" if ! mv backup.tgz "$FILE"; then echo "moving backup to $FILE failed." exit 1 |