Commit 5a557c11 authored by Colan Schwartz's avatar Colan Schwartz

Don't drop cache tables; they should be truncated instead.

parent c57c7a7d
...@@ -60,7 +60,9 @@ do ...@@ -60,7 +60,9 @@ do
DATE=$(date "+%y%m%d%H%M") DATE=$(date "+%y%m%d%H%M")
DST_FILE="$BACKUPDIR/$DATABASE-$DATE.sql.gz" DST_FILE="$BACKUPDIR/$DATABASE-$DATE.sql.gz"
LINK_TARGET="$BACKUPDIR/$DATABASE-LATEST.sql.gz" LINK_TARGET="$BACKUPDIR/$DATABASE-LATEST.sql.gz"
mysqldump $OPTS $IGNORETABLES $DATABASE | gzip > $DST_FILE # Should probably truncate these tables afterwards instead.
# mysqldump $OPTS $IGNORETABLES $DATABASE | gzip > $DST_FILE
mysqldump $OPTS $DATABASE | gzip > $DST_FILE
chmod 440 $DST_FILE chmod 440 $DST_FILE
chgrp $owner_group $DST_FILE chgrp $owner_group $DST_FILE
ln -sf $DST_FILE $LINK_TARGET ln -sf $DST_FILE $LINK_TARGET
......
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