diff --git a/systembackup b/systembackup index 5eb4585..6c75403 100755 --- a/systembackup +++ b/systembackup @@ -11,14 +11,14 @@ if [ "y" == "$MYSQL" ]; then fi } -mount() { +mount_snapshot() { echo "mounting /var/lib/mysql-snapshot..." mkdir -p /var/lib/mysql-snapshot - /bin/mount /dev/vg0/mysql-snapshot /var/lib/mysql-snapshot + mount /dev/vg0/mysql-snapshot /var/lib/mysql-snapshot echo "mounted /var/lib/mysql-snapshot." } -lock() { +create_snapshot() { echo "locking database..." mysql << EOF FLUSH TABLES; @@ -60,8 +60,8 @@ set -e trap cleanup SIGHUP SIGINT SIGTERM if [ "y" == "$MYSQL" ]; then - lock - mount + create_snapshot + mount_snapshot fi