s3cmd on Windows

#s3cmd on Windows

Install Python 2.7: https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi
Add ;C:\Python27;C:\Python27\Scripts to PATH environment variable
#setx /m PATH “%PATH%;C:\Python27;C:\Python27\Scripts;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\Git\bin”
Download pip: https://bootstrap.pypa.io/get-pip.py
python get-pip.py
Install: http://files.gpg4win.org/gpg4win-2.2.1.exe
#git clone https://github.com/s3tools/s3cmd.git c:\s3cmd
Download and unpack: https://github.com/s3tools/s3cmd/archive/master.zip
pip install python-dateutil
pip install python-magic

c:\s3cmd>python s3cmd –configure
ERROR: Option –preserve is not yet supported on MS Windows platform. Assuming –no-preserve.
ERROR: Option –progress is not yet supported on MS Windows platform. Assuming –no-progress.

Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.

Access key and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables.
Access Key: ****************
Secret Key: ****************

Encryption password is used to protect your files from reading by unauthorized persons while in transfer to S3
Encryption password: *********
Path to GPG program [C:\Program Files (x86)\GNU\GnuPG\pub\gpg.exe]: C:\Program Files (x86)\GNU\GnuPG\gpg2.exe

When using secure HTTPS protocol all communication with Amazon S3 servers is protected from 3rd party eavesdropping. This method is slower than plain HTTP and can’t be used if you’re behind a proxy
Use HTTPS protocol [No]: Yes

New settings:
Access Key: ****************
Secret Key: ****************
Encryption password: *******
Path to GPG program: C:\Program Files (x86)\GNU\GnuPG\gpg2.exe
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0

Test access with supplied credentials? [Y/n] y
Please wait, attempting to list all buckets…
Success. Your access key and secret key worked fine 🙂

Now verifying that encryption works…
Success. Encryption and decryption worked fine 🙂

Save settings? [y/N] y
Configuration saved to ‘C:\Users\mikrodots.BGL\AppData\Roaming\s3cmd.ini’

(Mapped drive to where backup files are located)

y:\>python c:\Users\cstgeorge\s3cmd\s3cmd put ./”mikroera (MIKROERA)/MikroERA C_VOL-b002-i446-cd.spi” s3://mikroburepo/Mikrodots/MikroERA/

t:\>python c:\s3cmd\s3cmd put ./”bgfile/BGFILE C_VOL-b001-i168-cd-cm.spi” s3://mikroburepo/Brodigan/BGFILE/

y:\>python c:\Users\cstgeorge\s3cmd\s3cmd sync ./”mikroera (MIKROERA)” s3://mikroburepo/Mikrodots/MikroERA/

t:\>python c:\s3cmd\s3cmd sync ./bgfile/ s3://mikroburepo/Brodigan/BGFILE/

Leave a Reply

Your email address will not be published. Required fields are marked *