Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

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

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... >> -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

Your Answer


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.