Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 was marked as an exact duplicate of an existing question.

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

Looking at the documentation found here:

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.