s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.58k stars 906 forks source link

Does s3cmd resume downloads? #280

Closed kaihendry closed 10 years ago

kaihendry commented 10 years ago

Quite confused here: http://r2d2.webconverger.org/2014-02-13/s3cmd-sync.html

When finished downloading it seems unable to get the md5sum right... http://s.natalian.org/2014-02-13/1392294829_1364x742.png

What's going wrong?

mdomsch commented 10 years ago

newer s3cmd (e.g. upstream master) works fine. You have to pass put --continue for it to continue though, it won't automatically do so without instruction.

$ ~/git/s3cmd/s3cmd put dban-2.2.7_i586.iso s3://s3cmd-test.domsch.com/ dban-2.2.7_i586.iso -> s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso [1 of 1] 11077632 of 11077632 100% in 165s 65.51 kB/s done [mdomsch@pws490 Downloads]$ mkdir t [mdomsch@pws490 Downloads]$ cd t [mdomsch@pws490 t]$ ~/git/s3cmd/s3cmd get s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso -> ./dban-2.2.7_i586.iso [1 of 1] 4706304 of 11077632 42% in 2s 1961.10 kB/s^CSee ya! [mdomsch@pws490 t]$ ~/git/s3cmd/s3cmd get s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso ERROR: Parameter problem: File ./dban-2.2.7_i586.iso already exists. Use either of --force / --continue / --skip-existing or give it a new name. [mdomsch@pws490 t]$ ~/git/s3cmd/s3cmd --continue get s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso s3://s3cmd-test.domsch.com/dban-2.2.7_i586.iso -> ./dban-2.2.7_i586.iso [1 of 1] 11077632 of 11077632 100% in 1s 2.14 MB/s done [mdomsch@pws490 t]$ md5sum dban-2.2.7_i586.iso 066fb83c43f6ba96f92b8fe1302cb431 dban-2.2.7_i586.iso [mdomsch@pws490 t]$ md5sum ../dban-2.2.7_i586.iso 066fb83c43f6ba96f92b8fe1302cb431 ../dban-2.2.7_i586.iso