Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Backup linux to ftp server

This scenerio is pretty common, but I have a little problem. My server is old and unless I can find precompiled libs that will work. I tried to use ncftpput to copy all my files to the ftp server. It works but for some reasons the remote server end up closing the connection. I searched for information but couldn't find a way to make ncftpput reconnect itself.

The problem is that I can reconnect manually but it will start from the first file and upload everything back until it timeout again... I have know idea how I can split my backup so it doesn't consume all bandwidth I get kicked off again (thats my theory).

If there is no other solution I might do a big loop that will loop over all file and recreate a new connection for every file and send them all one by one. If there is a better cleaner solution. I'm listening.

share|improve this question

marked as duplicate by mailq, Ward, Scott Pack, MDMarra, Wesley Dec 15 '12 at 0:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

It isn't a duplicate –  Loïc Faure-Lacroix Sep 25 '11 at 14:49

1 Answer 1

up vote 0 down vote accepted

Looking at the documentation found here: http://www.ncftp.com/ncftp/doc/ncftpput.html

It appears the default is: "Do (do not) try to resume transfers. The default is to not try to resume (-Z)."

If you use the "-z" it sounds as if it should allow the transfer to reconnect.

share|improve this answer
Oh right I'll try that. Didn't understood that line.. I believe the default was to resume. –  Loïc Faure-Lacroix Sep 25 '11 at 14:45
It doesn't reconnect but it continue where it failed if I'm not wrong.. so thats not so bad. –  Loïc Faure-Lacroix Sep 25 '11 at 14:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.