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.59k stars 905 forks source link

s3cmd sync always uploads #745

Open OliverJAsh opened 8 years ago

OliverJAsh commented 8 years ago

I have a file that is in my S3 bucket and in my local folder. I have verified they both have the same checksum (using --list-md5).

However, when I run s3cmd sync, s3cmd always wants to upload this file, despite the fact it is there already. If I run s3cmd sync, it will upload the file, and if I run it again, it will upload the file again.

Am I missing something here?

Version 1.6.1

OliverJAsh commented 8 years ago

aws s3 sync seems to work though

fviard commented 8 years ago

Can you show us the command line that you run? Is there something like a './' in it?

OliverJAsh commented 8 years ago

Yes, I was doing the following from within the directory:

s3cmd sync . s3://samefourchords.com-images --dry-run

If I cd out of the dir, it works!

s3cmd sync ~/Development/samefourchords.com-images/ s3://samefourchords.com-images --dry-run
OliverJAsh commented 8 years ago

Same issue in https://github.com/s3tools/s3cmd/issues/660

fviard commented 8 years ago

Ok, yes it is the same bug. Please use "./" instead of "." for the moment