Super User is a question and answer site for computer enthusiasts and power users. 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

I have a machine with only sftp access. No ssh, no shell, no rsync. When I get a file using /usr/bin/sftp, can I make it resume an aborted transfer?

share|improve this question
up vote 1 down vote accepted

I use lftp to auto sync all my photos from my NAS to my cheap webserver. If ever a photo changes it will automatically update it.

#!/bin/ash
SOURCE=/volume2/PHOTO/2011
BACKUPDIR=/foto.whatever.com/albums/2011

lftp -u username,password ftp.whatever.com << EOF
mirror -R -n -I *.jpg -I *.JPG -X @eaDir/ -X Collage/ -X ‘whatever/’ -X .piccache/ -X .recent/ -X Originals/ -X *.Db $SOURCE $BACKUPDIR
quit
share|improve this answer
    
Yup, a few minutes after I posted the question, I also found out about lftp, and I love it! – Arne May 26 '13 at 17:11

I just found the lftp program, and it supports get -c for resuming a download. If sftp can't do that, I think I'll stick with lftp.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .