<tip c w>This is NOT a stand-alone tutorial! It is an optional part of the tutorial at Installation Migration.</tip>
This tutorial is a sub-section of the main Installation Migration instructions. You can follow this tutorial as part of Step 1: Moving Files.
<tip c w>Warning: This option is only for advanced users that are familiar with SSH and have SSH access on both the "from" and "to" locations, and ability to use SCP to directly transfer a file from one location to the other. This also means that both locations must be on Linux based servers, since SSH is not available for Windows servers. If you are not sure how to use SSH we recommend to use the option Option 2: Use FTP to move from one folder or server to another instead.</tip>
Only use this method if you are comfortable with using SSH and the command line, and you have SSH access for both the "from" location and the "to" location. Otherwise stick to the standard FTP instructions mentioned in Option 2: Use FTP to move from one folder or server to another.
This is accomplishing the same "end result" as the Option 2: Use FTP to move from one folder or server to another option, you will be copying the files from one location to the other, but "how they get there" is much different1). However if you are able to use SSH on the from and to locations, this option is much faster and more reliable since you only transfer a single large zipped file directly from one location to the other, instead of downloading and uploading the files one by one using FTP.
This is the overall steps you will be following: First, SSH into the "from" location, zip up the entire contents of the folder that the software is installed in. Then while in the "from" location still, use SCP to transfer the zipped file to the other location. Then SSH to the "to" location, move the zip file to the folder that the files should be installed in, and unzip.
Here are the individual steps:
cd public_html/classifieds/
<
tar -zcvf geodesic_files.tar.gz .
<
scp geodesic_files.tar.gz username@example.com:/home/username/public_html/
Change username to the SSH username for the "to" location, change example.com to the "to" server domain, and change /home/username/public_html/ to the absolute folder that the software needs to be copied to. When you do that, it will prompt for the password, just enter the SSH password for the "to" location that goes along with the username you used. <
ssh username@example.com
Change username to the SSH username for the "to" location, change example.com to the "to" domain name. You will be prompted for the password, same as before enter the password that goes to the "to username" you used. <
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
<
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.
cd public_html/classifieds/ tar -zcvf geodesic_files.tar.gz . scp geodesic_files.tar.gz username@example.com:/home/username/public_html/ # Enter password when prompted ssh username@example.com # 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