Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
|
 |
04-19-2004, 02:29 PM
|
#1
|
Member
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 92
Rep:
|
Resuming FTP transfers on command-line
Hello,
I am looking for a way to transfer files and folders using the ftp command on the command line. The idea is to drop the files to be transferred into one 'outgoing' directory from where they are to be sent to multiple destinations. I am planning to write a script to automate this but I was wondering if FTP transfers can be resumed should a connection break.
Thanks,
Mkd
|
|
|
04-19-2004, 02:36 PM
|
#2
|
Member
Registered: Aug 2003
Location: The Netherlands
Distribution: SlackWare
Posts: 202
Rep:
|
ncftp can do this
check the man-page, or the website for the details
|
|
|
04-20-2004, 04:12 AM
|
#3
|
Member
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 92
Original Poster
Rep:
|
I have seen ncftp and I think I will be using that one. One more thing: Does anybody know how to do 'batch uploads' to multiple remote sites? Are there any scripts available?
|
|
|
04-20-2004, 08:34 AM
|
#4
|
Member
Registered: Sep 2003
Posts: 107
Rep:
|
You can us wget ftp://xxxx. Then to resuem you can just use -r
|
|
|
04-20-2004, 10:12 AM
|
#5
|
Member
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 92
Original Poster
Rep:
|
Thanks for the info, but AFAIK wget is mainly for downloads. Does anybody know a solution for uploads as well.
Thanks,
Mkd
|
|
|
04-20-2004, 02:23 PM
|
#6
|
Member
Registered: Feb 2004
Posts: 467
Rep:
|
You could try using curl
curl -T file_to_upload ftp://address -u username:password -C -
The "-C -" is to automatically resume. This may not work if the ftp server does not support the SIZE command.
|
|
|
04-22-2004, 04:56 AM
|
#7
|
Member
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 92
Original Poster
Rep:
|
I see how it works. But it's mainly that I come to tranferring folders to multiple destinations. Can curl transfer folders as well?
|
|
|
04-23-2004, 10:08 AM
|
#8
|
Member
Registered: Apr 2004
Location: Wernigerode, Germany
Distribution: Slackware 15.0
Posts: 92
Original Poster
Rep:
|
Hi everybody, I found a solution which helped to speed up my workflow a bit:
I am using ncftpput and I have written several configuration files with login details.
ncftpput -f [configuration file] -mVz [remote dir] [local dir]/* &
See if I can make a script out of this.
|
|
|
All times are GMT -5. The time now is 05:53 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
|
|