网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   服务器环境搭建 (https://www.0058.net/forumdisplay.php?f=5)
-   -   How to Transfer Files/Backup from Server to Server (https://www.0058.net/showthread.php?t=4228)

topvip 2010-10-20 12:02 AM

How to Transfer Files/Backup from Server to Server
 
Over the last few months, Picsopedia has bugged me a lot. It all began when I decided to move Picsopedia from DreamHost to HostGator and then from HostGator to Hostony. Just imagine how hard would it have been for me to transfer the whole 5GB big backup from one server to the other.
In all this time I managed to discover some tips and tricks that can be used to transfer files/backup from server to server. These tips and tricks make use of tools and utilities and are recommended for users who want to transfer huge files from one server to another in least possible time.
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 [COLOR=#002AAA !important][COLOR=#002AAA !important]Backups [COLOR=#002AAA !important]manager[/COLOR][/COLOR][/COLOR] 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 [COLOR=#002AAA !important][COLOR=#002AAA !important]secure[/COLOR][/COLOR]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
    /home/manmall/public_html/XXX.com, wget yourdomain.com/sitepack.tar
  4. Now uncompress the archive using the command
    tar -xvf sitepack.tar
  5. To check the hirearchy of files and their permissions, use the command
3. FlashFXP
FlashFXP is one of those few FTP clients which allow you to transfer files through FTP from one server to another without downloading them to your local PC first.
I haven't ever tried it myself but it is one of the most recommended FTP software across the Internet. You can download it from here.
4. SST Web Script
SST is basically a server to server file transfer PHP web script. It is really useful as I have used it myself several times however it is recommended for small backup/file transfers. It has a complete GUI which lets you operate it easily. You need to install this on server 2 (the server where you want to download your backup)
Download the script from Sizlopedia.
Thats all! I knew only 4 best techniques to transfer files/backup from server to server. If you have any more, please share in the comments.
<IMG style="BORDER-BOTTOM-STYLE: none; BORDER-RIGHT-STYLE: none; WIDTH: 0px; DISPLAY: none; BORDER-TOP-STYLE: none; HEIGHT: 0px; BORDER-LEFT-STYLE: none" width=0 height=0> http://kona.kontera.com/%20/lib/imgs/grey_loader.gif


All times are GMT +8. The time now is 10:44 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.