Commit fe7dd76a authored by kaiyou's avatar kaiyou

Update the mysql checkpoint script

parent e119865b
#!/bin/sh
PROJECTDIR=$1
BASEDIR=${2:-$PROJECTDIR}
SERVICE=${3:-db}
cd $PROJECTDIR
docker-compose stop $SERVICE
rm $BASEDIR/wal/*
tar -zcf $BASEDIR/wal/$(date +%s).tar.gz $BASEDIR/db
docker-compose up -d $SERVICE
ls -lah $BASEDIR/wal
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment