Linux

Using zip via ssh

# zip -r drupal.zip html

This zips all files and directories

  • -r:Includes all files and directories -> Files
  • drupal.zip:The zip file you want to create
  • html:The folder you are targetting or use * if your currently in the folder.

Import sql via ssh

Here is an example of import sql files from ssh

# mysql -uPutYourUserHere -pPutYourPasswordHere -hlocalhost PutYourUserHere_databaseName < database.sql

# mysql -u username -p dbname < data.sql