(S)FTP only replace older file

0

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.

PeterJCLaw

Posted 2010-06-15T20:42:36.473

Reputation: 1 882

It's too bad that they're not available, because rsync could do this handily. – Ignacio Vazquez-Abrams – 2010-06-15T21:30:23.227

Which OS? etc. etc.. – BloodPhilia – 2010-06-15T21:58:18.600

Answers

0

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.

Apache

Posted 2010-06-15T20:42:36.473

Reputation: 14 755

hrm, command-line ideally, but I'll have a play with FileZilla. Any ideas what options to pass to lftp? – PeterJCLaw – 2010-08-22T21:55:49.073

Well... http://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

– Apache – 2010-08-23T07:53:00.710