Menu

#1514 FTP-Upload mit resume (append)

V1.0
new
nobody
None
Other
Low
Dev Version -> Bitte Trunk-Revision im Text mit angeben!
idea/suggestion
Normal
2012-08-25
2012-08-25
makaveli187
No

Trunk 2344

Wäre es möglich den curl-Befehl für einen FTP-Upload mit der Option "-C -" zu erweitern?
[manpage]
-C, --continue-at <offset>

Continue/Resume a previous file transfer at the given offset. The given offset is the exact number of bytes that will be skipped, counting from the beginning of the source file before it is transferred to the destination. If used with uploads, the FTP server command SIZE will not be used by curl.

Use "-C -" to tell curl to automatically find out where/how to resume the transfer. It then uses the given output/input files to figure that out.

If this option is used several times, the last one will be used.
[manpage/]

Laut help-screen wird das von der verwendeten Version (unter 7270) zumindest als vorhanden angegeben und in einem kleinen Test konnte ich die Funktion auch bestätigen.

!Achtung! Nicht auf die Option "-a, --append" reinfallen!
[manpage]
-a, --append

(FTP/SFTP) When used in an upload, this will tell curl to append to the target file instead of overwriting it. If the file doesn't exist, it will be created. Note that this flag is ignored by some SSH servers (including OpenSSH).
[manpage/]

Diese Option hängt die gesamte Datei komplett an die bestehende Datei an. D.h. bspw. wenn der Upload bei 30% abgebrochen wurde und nochmals gestartet wird, hat man am Ende eine 130%-Datei. Das hat zumindest mein Test ergeben...

Discussion


Log in to post a comment.