This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:server:migration:ssh_method [2012/10/12 23:40] jonyo |
tutorials:server:migration:ssh_method [2014/09/25 16:55] (current) |
||
---|---|---|---|
Line 5: | Line 5: | ||
This tutorial is a sub-section of the main [[tutorials: | This tutorial is a sub-section of the main [[tutorials: | ||
- | <tip c w> | + | <tip c w> |
- | Only use this method if you are **comfortable with using SSH and the command line**, and you have SSH access for both the " | + | Only use this method if you are **comfortable with using SSH and the command line**, and you have SSH access for both the " |
- | This is accomplishing the same "end result" | + | This is accomplishing the same "end result" |
This is the overall steps you will be following: First, SSH into the " | This is the overall steps you will be following: First, SSH into the " | ||
Line 24: | Line 24: | ||
- Make sure the **geodesic_files.tar.gz** file exists in the folder. | - Make sure the **geodesic_files.tar.gz** file exists in the folder. | ||
- Delete the contents of templates_c folder, using <code bash>rm -Rf templates_c/ | - Delete the contents of templates_c folder, using <code bash>rm -Rf templates_c/ | ||
- | - You may wish to use FTP to download a copy of the **geodesic_files.tar.gz** file for backup purposes. | + | |
+ | | ||
- That's it! Continue on to the next step [[tutorials: | - That's it! Continue on to the next step [[tutorials: | ||
+ | ===== 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. | ||
+ | |||
+ | <code bash>cd public_html/ | ||
+ | tar -zcvf geodesic_files.tar.gz . | ||
+ | scp geodesic_files.tar.gz [email protected]:/ | ||
+ | # Enter password when prompted | ||
+ | ssh [email protected] | ||
+ | # Enter password when prompted | ||
+ | cd / | ||
+ | tar -zxvf geodesic_files.tar.gz | ||
+ | rm -Rf templates_c/ | ||
+ | chmod 0777 geo_templates/ |