created backup/restore scripts
[tine20] / scripts / backup / restore-data.sh
1 #!/bin/bash
2
3 SOURCE_PATH=$1
4
5 (cd /var/lib/mysql/; tar xf $SOURCE_PATH/full_mysql.tar.bz2 .)
6 (cd /var/lib/tine20/files; tar xf $SOURCE_PATH/tine20_files.tar.bz2 .)
7
8 chown -R mysql:mysql /var/lib/mysql/*
9 chown -R www-daza:www-data /var/lib/tine20/files/*