The following is a list of SSH commands to move a website from one location to another.
Once you SSh'd in then change directories to one higher than the directory you want to zip
>> example - if you're in the directory you want to zip already
cd ..
>> otherwise
cd public_html/
>> now to zip the website
tar -czvf fileName.tar.gz folderName/
- Now you need to SSH into the website you
're transferring to.
!!! when doing this on the project in had I first needed to delete what was on there.
> to do this I deleted the directory in question
rm -r public_html/
> and recreated that directory
mkdir public_html/
////////////////////////////////
now get yourself in the folder you want...
and use the following commands to to unzip your website
>>
wget http://www.siteyourzipisat.co.uk/fileName.tar.gz
tar -zxvf fileName.tar.gz
//////////////////////////////////////
hopefully it'll be as easy as that for you as well :)
possible search terms used to find this article.
ssh unzip tar.gz
ssh zip website
ssh unzip website
ssh compress site
ssh compress website
ssh transfer website
ssh transfer joomla website
just 2 quick notes on the above blog that I've noticed when repeating the above procedure.
ReplyDeleteif you're zipping your whole site then theres no need to run the command
cd public_html/
as it's the public_html folder you'll want to zip. ie->
tar -czvf fileName.tar.gz public_html/
Therefore you also won't need to run
mkdir public_html/
as when unzipping the directory that will be done automatically
for transferring mysql databases check this blog http://littleripplesproject.blogspot.com/2009/08/transferring-large-databases.html
ReplyDelete