Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm looking for a way to have (S)FTP only copy across a file if it's newer than the one already on the server. Ideally it would spit an error message listing the files that failed (but allow the others).

SSH and SCP aren't available, otherwise I'd script something using those.

Edit: I'm running Ubuntu locally, and I believe the server is also linux-based.

share|improve this question
    
It's too bad that they're not available, because rsync could do this handily. –  Ignacio Vazquez-Abrams Jun 15 '10 at 21:30
    
Which OS? etc. etc.. –  BloodPhilia Jun 15 '10 at 21:58
add comment

1 Answer

If you want a script, maybe lftp ? (It can be just a strange idea of mine again.. if it's not what you want, sorry.)
Or if graphical, FileZilla.

share|improve this answer
    
hrm, command-line ideally, but I'll have a play with FileZilla. Any ideas what options to pass to lftp? –  PeterJCLaw Aug 22 '10 at 21:55
    
Well... lftp.yar.ru/lftp-man.html >> -N, --newer-than=SPEC download only files newer than specified time || --on-change=CMD execute the command if anything has been changed || --older-than=SPEC download only files older than specified time || --size-range=RANGE download only files with size in specified rang –  Shiki Aug 23 '10 at 7:53
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.