s3cmd sync fails with Problem: OSError: [Errno 22] Invalid argument

I had s3cmd sync failing with Error 22.  But s3cmd get was working fine.. On closer examination of the code it turns out get uses “ab” mode for writing the destination file where as sync uses “wb” mode.. (As get assumes that we are creating a new file). To get around this problem you will have to edit s3cmd and change the write mode to “ab” and you will also have to enter a line to delete the file before opening in “ab” mode.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s