ss import database
This command will import a database dump file /tmp/import.sql
if it exists, otherwise /tmp/import.sql.zip
or /tmp/import.sql.gz
if those exist. It will overwrite the ENTIRE production database on your SlickStack server so be sure you backup your database (download it manually or remotely save it somewhere) before running this command. All previous data in your database will be completely lost and overwritten!
This command works well in conjunction with ss dump database
because if you want to move to a new SlickStack server, you can first dump the database on your old server, and then wget
or scp
that dumped database file (e.g. production.sql
) from your old server to the new server. After you have the complete dump file on the new server, rename/move it to /tmp/import.sql
and then it can be used with this command easily.
Routine:
- runs
ss-import-database
Aliases:
ss import db