created backup/restore scripts
[tine20] / scripts / backup / backup-config.sh
1 #!/bin/bash
2
3 BACKUP_PATH=$(mktemp --directory --tmpdir=/tmp/)
4 TODAY=$(date +"%Y-%m-%d")
5
6 test -d /var/lib/tine20/backup/$TODAY || mkdir -p /var/lib/tine20/backup/$TODAY
7
8 cp -ra /etc/tine20/config.inc.php /var/lib/tine20/backup/$TODAY