I often connect to a database by sftp protocol, and I get the data by doing get -r
is there any option to skip all existing file on my computer ? I tried get -r --overwrite but it does'nt work. (I know I could set my files in read only but I'ld like to find a better way).
get -a
. See Dante's answer and thesftp
man page for caveats. – kontextify Feb 19 '21 at 11:40-a
flag is really dumb and checks only the file size to continue interrupted downloads. If the local file is in place and has smaller size, it will try to append the rest of the remote file (probably corrupting the local file), if the file has large size, it will throw errors so I would not consider it a complete solution, but rather something that might work for some cases, but not for all ones. – Jakuje Feb 19 '21 at 15:36