diff --git a/scripts/import-db.sh b/scripts/import-db.sh index ee51b62..e009ff1 100755 --- a/scripts/import-db.sh +++ b/scripts/import-db.sh @@ -22,3 +22,6 @@ docker exec -i sparkpress_db mysql --user=$MYSQL_USER --password=$MYSQL_PASSWORD # clean up files that aren't useful after import rm sql/db-import* + +mkdir -p sql/previous-imports +mv sql/*.sql.gz sql/previous-imports