GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   server to server ftp client? (https://gfy.com/showthread.php?t=618148)

spacedog 06-05-2006 06:54 PM

server to server ftp client?
 
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

BoyAlley 06-05-2006 06:57 PM

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.

SplitInfinity 06-05-2006 07:02 PM

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.

:-)

spacedog 06-05-2006 07:02 PM

Quote:

Originally Posted by BoyAlley
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.

I have that on the new server, but not on the one I want to move off of.

spacedog 06-05-2006 07:04 PM

Quote:

Originally Posted by SplitInfinity
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.

:-)

:thumbsup :thumbsup 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...

SplitInfinity 06-06-2006 12:59 AM

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. :-)

SplitInfinity 06-06-2006 01:03 AM

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 stop

SplitInfinity 06-06-2006 01:04 AM

Notice: there *are* better ways to do this via mysqldump and etc, but thats beyond the scope of whats easy to explain. ;-)

d00t 06-06-2006 03:08 AM

rsync 4L

u-Bob 06-06-2006 03:13 AM

FlashFXP...

BradM 06-06-2006 03:26 AM

Quote:

Originally Posted by d00t
rsync 4L

troof dat

Methodcash Rick 06-06-2006 05:16 AM

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.

directfiesta 06-06-2006 07:51 AM

Quote:

Originally Posted by d00t
rsync 4L

yep ....

AtlantisCash 06-06-2006 08:00 AM

flash fxp...

G-Rotica 06-06-2006 08:03 AM

i use fxp, works great. i even paid for it, i like it so much.


All times are GMT -7. The time now is 11:43 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123