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

2 Answers 2

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

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.