![]() |
Transferring files between 2 servers
Is there an easy way to transfer files between two servers than zip>download>upload>unzip ?
I need some 3 Gigabytes of files/folders/subfolders shifted to another server. And my cable is down for a couple of days. |
|
Yes it's so easy to fxp something with flashfxp... try it...
------------------ http://x-raid.net/xraid.gif I can kill you, so fuck off! |
Thanks. Does this use the servers' bandwidth or my connection?
|
I would say the server but I'm not sure.
------------------ HQ content 4 low prices! Please tell them Deluxe has send you. [email protected] 77717734 |
Yes it uses the servers' bandwidth and not yours!
------------------ http://x-raid.net/xraid.gif I can kill you, so fuck off! |
I'm trying to transfer between two servers and I keep getting the message -
PASV 227 Entering Passive Mode (IP address here) PORT IP-address-here 500 Illegal PORT command Site to Site Transfer Failed! Transfer Failed! Whats wrong? |
I enabled some alternative method on both sites and it still doesnt work.
|
Hypo -
The 2 servers that you are copying between have to support the protocals in order to do a copy between them with that software. So if that won't work for you, do you have telnet/ssh access on either of the servers ?? If so you could login and just do the transfer that way. Tim |
I have telnet/ssh on both servers. How exactly do I transfer the files? What command? Any script?
|
Why not just ask your host to tar up the files and move them for you?
|
I dont think my host will help me shift to another host :P
|
Quote:
We do that. ------------------ Pay-As-You-Go Hosting FREE Trial! Below $.90/GB Dedicated Hosting EnergyHosting - Energizing your business |
Don't use FXP, you will lose permissions/ownerships on files...
Here's a quick guide: Login to telnet of old host. 1. Goto directory where you web files are... ie /home/site/me/web and type tar -cpf backup.tar * 2. wait a while.. now all your files have been "zipped". Now at shell type ftp open www.newserver.com put your login and pass in put backup.tar Now you wait a looong time till transfer is done.. 3 FTP in your new host and move the .tar file in the web visible folder. 4. Telnet in and now type in the folder that the .tar is in: tar -xpf backup.tar Wait a while... =) Done! rm backup.tar removes the file Tadaa! |
Can't you just FTP them from one server to the other? I use SmartFTP and I can transfer from one server to another with no problem.
------------------ Tracy ;) Fantasy Content http://www.fantasycontent.com |
Quote:
|
Quote:
|
Morpheus thanks for the step-by-step guide! That seems to be working!!
Now, if I want to tar only a few directories and not all, how can I do that? So if I have directories dira, dirb, dirc, diry and dirz and I want to tar only dira, dirb and dirc, how do I do that? Cos their are some directories having 2 gigs of file that I dont want to tar and transfer. Is there a function like - tar -cpf backup.tar dira + dirb + dir c or preferably tar -cpf backup.tar * - dirz -diry ? P.S. I confirmed that my server doesnt support fxping |
I see I can use an append function slightly tediously -
tar rpf backup.tar dira tar rpf backup.tar dirb tar rpf backup.tar dirc This should work right? I have around 30 folders so it will be tedious. |
Quote:
|
All times are GMT -7. The time now is 05:39 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123