Is there a way to ftp from one server to the next instead of downloading onto local & then ftp back up to next server. I use core ftp, can I do it with this somehow, or do I need to buy another ftp client
server to server ftp client?
Collapse
X
-
Depends on your servers to be honest. If you have shell access it should be easy enough to do.
www.CuteFTP.com also has built-in functions to facilitiate this on compatible servers. -
Yep,
You can use "FXP" or more commonly, just login to ssh and ftp from one server to the other like so:
shell> ftp theotherserver.com
user: somebody
password: *******
To learn how to use it, visit the following URL's:
This is a windows example, but the commands are the same.
http://www.tburke.net/info/misc/cmdline-ftp.htm
Heres a good overview:
http://www.ucc.ie/doc/other/howtoftp.html
Note: The ftp client and server programs already exist on your servers.
Also, you could use scp. :-) My personal favorite....
Do it like this:
cd into the directory where your source files are...
cd /home/someshit
then
scp -Cpr * [email protected]:/home/somepath/tosomeshit
the system will ask you for the password to the other box and voila, it copies.
:-)Comment
-
I have that on the new server, but not on the one I want to move off of.Originally posted by BoyAlleyDepends on your servers to be honest. If you have shell access it should be easy enough to do.
www.CuteFTP.com also has built-in functions to facilitiate this on compatible servers.Comment
-
Originally posted by SplitInfinityYep,
You can use "FXP" or more commonly, just login to ssh and ftp from one server to the other like so:
shell> ftp theotherserver.com
user: somebody
password: *******
To learn how to use it, visit the following URL's:
This is a windows example, but the commands are the same.
http://www.tburke.net/info/misc/cmdline-ftp.htm
Heres a good overview:
http://www.ucc.ie/doc/other/howtoftp.html
Note: The ftp client and server programs already exist on your servers.
Also, you could use scp. :-) My personal favorite....
Do it like this:
cd into the directory where your source files are...
cd /home/someshit
then
scp -Cpr * [email protected]:/home/somepath/tosomeshit
the system will ask you for the password to the other box and voila, it copies.
:-)
thanks,, I need to bookmark this,,
ok, now that this parts getting done, now I ned to learn how to move mySql databases without fucking up the info...Comment
-
Grab a server here, I will teach you those things and do the inital stuff for you, while at the same time show you how to do it so you learn to be muy chingon. :-)Comment
-
If the versions of mysql are compatible on each server....
you can:
cd /var/lib/mysql
then use that scp command above I showed you and scp it over to the other server in the same place.
On the destination server, first do this:
mv /var/lib/mysql /var/lib/mysql_new_original
that moves the fresh install data out of the way
Next make the directory again:
mkdir /var/lib/mysql
(make sure the permissions are the same as the original mysql directory)
ls -la /var/lib/mysql_new_original will show you the proper permissions.
NOTE: before moving it over...
stop mysql on both servers... typically:
service mysqld stopComment
-
Notice: there *are* better ways to do this via mysqldump and etc, but thats beyond the scope of whats easy to explain. ;-)Comment
-
Simply do it through SSH.
tar cfp - SOURCE_DIRECTORY/ | ssh root@your_ip_address cd /DESTINATION_DIRECTORY/ ; tar xf -
That'll do the current directory, recurrsive, and maintain all permissions.Comment
-
yep ....Originally posted by d00trsync 4LI know that Asspimple is stoopid ... As he says, it is a FACT !
But I can't figure out how he can breathe or type , at the same time ....Comment
-


Comment