Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-23-2010, 01:11 PM
|
#1
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Rep:
|
file transfer from one ftp server to another ftp server
I have login of two ftp servers ,and I want to transfer the data from one ftp server to another ftp server .How can I do that,without downloading to local and then upload to other ftp ?
|
|
|
02-23-2010, 01:13 PM
|
#2
|
Member
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245
Rep:
|
Can you also ssh to one of the hosts? Then you will be able to ftp to/from the other.
|
|
|
02-23-2010, 01:25 PM
|
#3
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep:
|
Quote:
Originally Posted by JimBrewster
Can you also ssh to one of the hosts? Then you will be able to ftp to/from the other.
|
No bro,if that's the case I wouldn't have asked the question here .
|
|
|
02-23-2010, 04:40 PM
|
#4
|
Member
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30
Rep:
|
I myself never used it but perhapt scp will work for you.
|
|
|
02-23-2010, 04:44 PM
|
#5
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397
|
Once you're logged into an ftp session, you only have a limited set of cmds available; 'ftp' is not one of those.
If you can mount the ftp area onto another system eg via nfs, you could then ftp the content to another system.
If you can mount both ftp areas, then a simple cp should work, I think.
|
|
|
02-23-2010, 10:00 PM
|
#6
|
Senior Member
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386
Original Poster
Rep:
|
Quote:
Originally Posted by chrism01
Once you're logged into an ftp session, you only have a limited set of cmds available; 'ftp' is not one of those.
If you can mount the ftp area onto another system eg via nfs, you could then ftp the content to another system.
If you can mount both ftp areas, then a simple cp should work, I think.
|
That's a good idea chris ,it should work .Let me try it .
But after mounting the ftp via nfs where will I provide username and password to login there ?
|
|
|
02-23-2010, 10:39 PM
|
#7
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397
|
Unfortunately, the ftp server has to nfs export it to make it avail to you; client & server remember
In general, the options are:
1. it can't be done ie ftp -> ftp; you have to download then upload
2. the src is exported via nfs or samba or sshfs and you ftp from there
3. both src & destn are exported and just use cp
|
|
|
02-24-2010, 02:48 AM
|
#8
|
LQ Newbie
Registered: Apr 2009
Location: India
Distribution: Fedora
Posts: 2
Rep:
|
If you have nfs/samba on both the servers , then you can mount both the shares on your system and just copy command will work
mount -t cifs //<server1IP>/<share> <absolute_Path_on_local_system> -ousername=<samba_username>,passwd=<samba_password>
this mounts the samba share in your system at location <absolute_Path_on_local_system>
repeat the same for other server also and just do copy between these 2 locations
Hope this helps
|
|
|
All times are GMT -5. The time now is 10:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|