Transfer Files or Backup from one Server to another Server

September 4, 2008 · Filed Under Linux / Unix Commands 

1. cPanel Remote Backup

This is the most easiest method used to transfer whole site backup from server to server. It makes use of the “Backups” feature in cPanel and needs to be enabled by your host.

To use this

1. Open the Backups manager in your cPanel and click “Generate/Download a Full Backup”
2. For Backup destination choose “Remote FTP Server (Passive Mode Transfer)”
3. Enter the FTP server, username and password
4. Enter the FTP server port (this is usually “21″)
5. Leave Remote Dir field empty
6. Hit “Generate Backup”

Your backup will now be passively generated and transfer from server to server using the net2ftp protocol. If you don’t see this option in your cPanel then you need to ask your host to enable it.

2. SSH

SSH is a network protocol that allows data to be exchanged over a secure channel between two computers. Now a days nearly every web host provides this on request. You will need the PuTTy client to connect to your server via SSH.

Once you are connected via PuTTy just follow the instructions:

1. Login to server 1 via SSH and open the folder which you want to backup e.g.
cd /home/somepath/to/yourwebsite/public_html
2. Make a compressed archive out of this folder using the command
tar -cvf sitepack.tar ./
3. Login to server 2 via SSH and use the command below to fetch the backup from server
wget yourdomain.com/sitepack.tar
4. Now uncompress the archive using the command
tar -xvf sitepack.tar

If you enjoyed this post and found it useful, please write your comments. You comments would encourage us to write more. Also make sure you subscribe to our RSS feed!

We Provide Custom PHP Programming for Joomla , Wordpress, OScommerce, Creloaded, Xcart and any other opensource solution you can think of at www.technoIntellects.com.

Get our Joomla Hosting Packages at the affordable price with unlimited services

Comments

3 Responses to “Transfer Files or Backup from one Server to another Server”

  1. Hajan on November 1st, 2008 9:18 pm

    Nice & simple tutorial… Thanks

  2. Jenny on December 23rd, 2008 1:06 pm

    Interesting article. I found some more information here

  3. Ben Thompson on December 26th, 2008 4:20 pm

    Great article. I found some more information here

Leave a Reply