tutorials:server:migration:ssh_method

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:server:migration:ssh_method [2012/10/13 00:01]
jonyo
tutorials:server:migration:ssh_method [2014/09/25 16:55] (current)
Line 25: Line 25:
   - Delete the contents of templates_c folder, using <code bash>rm -Rf templates_c/*</code> <   - Delete the contents of templates_c folder, using <code bash>rm -Rf templates_c/*</code> <
   - Make sure the folders and contents are writable, by chmod 777 on new location <code bash>chmod 0777 geo_templates/ user_images/ _geocache/ templates_c/ -R</code> <   - Make sure the folders and contents are writable, by chmod 777 on new location <code bash>chmod 0777 geo_templates/ user_images/ _geocache/ templates_c/ -R</code> <
-  - You may wish to use FTP to download a copy of the **geodesic_files.tar.gz** file for backup purposes.  Once you have downloaded a copy, be sure to **delete the file** from **both locations** using FTP (or SSH), as it could be a security risk to keep it somewhere that can be downloaded from the web. <+  - You may wish to use FTP to download a copy of the **geodesic_files.tar.gz** file onto your location computer for backup purposes, and to make it easy to "start over" on the migration if something goes wrong in the steps ahead.  Once you have downloaded a copy, be sure to **delete the file** from **both locations** using FTP (or SSH), as it could be a security risk to keep it somewhere that can be downloaded from the web. <
   - That's it!  Continue on to the next step [[tutorials:server:migration:start#Step 2 - Create Database]]  <   - That's it!  Continue on to the next step [[tutorials:server:migration:start#Step 2 - Create Database]]  <
  
 +
 +===== All SSH commands =====
 +
 +Below are all of the SSH commands to run, these are extracted from the steps above and combined for your easy reference and removal of the explanations.  Note that you will need to make adjustments in some cases such as to folder or domains used.  If you aren't sure what needs to be changed, stick to following it step by step in the instructions above.
 +
 +<code bash>cd public_html/classifieds/
 +tar -zcvf geodesic_files.tar.gz .
 +scp geodesic_files.tar.gz [email protected]:/home/username/public_html/
 +# Enter password when prompted
 +ssh [email protected]
 +# Enter password when prompted
 +cd /home/username/public_html/
 +tar -zxvf geodesic_files.tar.gz
 +rm -Rf templates_c/*
 +chmod 0777 geo_templates/ user_images/ _geocache/ templates_c/ -R</code>
tutorials/server/migration/ssh_method.1350086467.txt.gz · Last modified: 2014/09/25 16:55 (external edit)