Skip to content

Commit 1915b63

Browse files
author
todiadiyatmo
committed
fix sql backup dir
1 parent 7f5017b commit 1915b63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

backup_rotation.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,9 @@ if [ ! $PERFORM_SQL_BACKUP -eq 0 ]; then
347347

348348
echo "Compress sql backup.."
349349

350-
# Compress tables and files
351-
tar -cjf $TMP_DIR/backup.incoming/$backup_filename $TMP_DIR/backup.incoming/mysql_dump.sql
350+
cd $TMP_DIR/backup.incoming
351+
tar -cjf $backup_filename mysql_dump.sql
352+
352353

353354
#clean sql file
354355
rm $TMP_DIR/backup.incoming/mysql_dump.sql

0 commit comments

Comments
 (0)