1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

new backup script, see #11

This commit is contained in:
Joshua Tauberer
2014-06-03 20:21:17 +00:00
parent 51dd2ed70b
commit 89730bd643
4 changed files with 141 additions and 6 deletions

View File

@@ -2,7 +2,13 @@
source setup/functions.sh
apt_install python3-flask links
apt_install python3-flask links rdiff-backup
# Create a backup directory and a random key for encrypting backups.
mkdir -p $STORAGE_ROOT/backup
if [ ! -f $STORAGE_ROOT/backup/secret_key.txt ]; then
openssl rand -base64 2048 > $STORAGE_ROOT/backup/secret_key.txt
fi
# Link the management server daemon into a well known location.
rm -f /usr/bin/mailinabox-daemon