I would like to use the command
put to recover an ongoing file transfer via
sftp after a broken pipe.
Files should be uploaded only if the destination size is smaller than the one of the source file.
I don't have
ssh access so
rsync is not an option.
From the sftp manual, I tried specifying the flags
put -a -r source_dir/. However, I got error messages in the transfer.
Couldn't stat remote file: No such file or directoryfor files not on server
Destination file bigger or same size as source filefor files that are already on server, and correctly shouldn't be transferred
Real example for the 1st error:
Uploading of file /Volumes/Seagate/amphioxus/raw_h5/9N0Bp0b0_m150427_041848_42182_c100810932550000001823181110291543_s1_p0.2.bax.h5.gz to /deposits/Pacbio_amphioxus/raw_h5/9N0Bp0b0_m150427_041848_42182_c100810932550000001823181110291543_s1_p0.2.bax.h5.gz failed! Couldn't stat remote file: No such file or directory
Of course, the file exists in the source directory.
Any solutions for this?