LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 02-23-2010, 01:11 PM   #1
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
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 ?
 
Old 02-23-2010, 01:13 PM   #2
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Can you also ssh to one of the hosts? Then you will be able to ftp to/from the other.
 
Old 02-23-2010, 01:25 PM   #3
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by JimBrewster View Post
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 .
 
Old 02-23-2010, 04:40 PM   #4
avtandil_k
Member
 
Registered: Feb 2010
Distribution: CentOS,openSUSE
Posts: 30

Rep: Reputation: 16
I myself never used it but perhapt scp will work for you.
 
Old 02-23-2010, 04:44 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
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.
 
Old 02-23-2010, 10:00 PM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Original Poster
Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by chrism01 View Post
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 ?
 
Old 02-23-2010, 10:39 PM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,397

Rep: Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777Reputation: 2777
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
 
Old 02-24-2010, 02:48 AM   #8
sandeep1508
LQ Newbie
 
Registered: Apr 2009
Location: India
Distribution: Fedora
Posts: 2

Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 03:13 AM
Help needed to transfer list of files to FTP server, to different folders amazon Programming 1 06-26-2009 01:12 AM
How to monitor web server, FTP server, Mail server and database server vodka33us Programming 1 06-16-2008 04:20 AM
backup server ; network file system / ftp-server ? markus1982 Linux - Security 5 06-06-2007 05:15 PM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration