Backup / Move a Website II

As soon as I have finished creating my backup and compressed it into a tarball on my old server, it is time to log into the new server.

SSH Login at your NEW webserver

Chances are, you don't have a domain name to go to, right? So to get to your new webserver you should use the IP address that came with the account details of your new webhost. e.g.:

code:
putty -ssh 64.191.5.105

As you can see, I use PuTTY to handle all my SSH work, you could use anything really but PuTTY is FREE. Login with your username and password and get to your WWW root or
path: /home/username/public_html
folder as described in the previous page.

Wget

Don't worry if you don't know what 'wget' is - as soon as you try it out once, you will quickly figure it out - and it might even give you some other ideas for it's uses. ;)

If your host does not have this feature (wget) installed - look for another host! That's all I can say...

Remember, you have to be at
path: /home/username/public_html
before you do any of the following!

Now, type

code:
wget http://www.old_host.com/~username/desilvabiz.tar.gz

and hit Enter ... and unleash the magic! Yeah, it's magic if you have dialup to work with (like me) and your website is reasonably large!

What did you just do? Well, you just moved your tarball off your old web host, directly to your new web host, without having to download anything onto your PC! You also did that at speeds that you probably could not match through your 56k modem!

Extracting the tarball

Once the file has completed it's transfer to your new web server, it's time to extract the tarball (uncompress the file). Just like compressing, uncompressing is also done in one line!

Type

code:
tar -xzf desilvabiz.tar.gz

and hit Enter. Take a bow... Your website is moved!

Do NOT forget to remove desilvabiz.tar.gz on your old web server when you are certain everything is working with your new site.

Warning: This method of moving your website ONLY includes your web pages, images and scripts, it does NOT include any databases or mail files (i.e. outside your WWW root).

Backup MySQL databases.

TOP

How old are you?

 Teenager

 20 something

 30 something

 40 something

 Over 50