Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a local folder, and I would like to sync it a folder on a web server via FTP . what is the best way to accomplish this? I would prefer to be able to do this via terminal, so that I can just have an 'update' command that would update the files on the sever.

share|improve this question
    
Did any of the answers help you? Would you please accept one if so? –  queueoverflow Apr 5 '12 at 11:42
add comment

2 Answers

up vote 4 down vote accepted

You could mount it with curlftpfs and then sync it with unison.

share|improve this answer
2  
... or rsync (which is used by unison) –  dAnjou Jun 14 '11 at 20:00
    
rsync does not sync in two ways I think. –  queueoverflow Jun 15 '11 at 15:56
    
No, it doesn't. But for this case it is not necessarily needed. I just wanted to add it ;) –  dAnjou Jun 16 '11 at 9:44
    
Right, in this case a rsync --delete would do the trick. –  queueoverflow Jun 16 '11 at 10:04
add comment

The script you are searching for might be FTPSync.pl http://www.clazzes.org/ftpsync

share|improve this answer
2  
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Peachy Sep 15 '12 at 10:25
    
I see that it would make sense in general, but in this case I recommend a program. What else should I write? Type "ftpsync.pl -h" to learn how to use it. –  Matthias Weiler Sep 17 '12 at 16:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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