tsileo / bakthat

Bakthat is a MIT licensed backup framework written in Python, it's both a command line tool and a Python module that helps you manage backups on Amazon S3/Glacier and OpenStack Swift. It automatically compress, encrypt (symmetric encryption) and upload your files.
http://bakthat.readthedocs.org/en/latest/
MIT License
491 stars 67 forks source link

Trying backup a file to glacier #72

Open wmariuss opened 9 years ago

wmariuss commented 9 years ago

Error: boto.glacier.exceptions.UploadArchiveError: An error occurred while uploading an archive: 'ascii' codec can't decode byte 0x8b in position 1: ordinal not in range(128)

But after I edit the layer1.py file, it works.

a) Open this file: /usr/local/lib/python2.7/dist-packages/boto-2.34.0-py2.7.egg/boto/glacier/layer1.py b) Add str() function for last code in the file: uri = 'vaults/%s/multipart-uploads/%s' % (str(vault_name), upload_id) c) Save it and backup file to glacier.

norpol commented 9 years ago

@wmariuss Hi! A huge thank you! I was able to resolve the error. By editing the line 1276 of the file /usr/local/lib/python2.7/dist-packages/boto/glacier/layer1.py (Debian 7.6)

uri = 'vaults/%s/multipart-uploads/%s' % (str(vault_name), upload_id)

PS: Shouldn't be that issue a boto/glacier issue than bakthat? => https://github.com/boto/boto/issues/2603

Does bakthat restore works for you?

wmariuss commented 9 years ago

Hi, My restore works very well. This is works even for big files.

norpol commented 9 years ago

Hm, I get Job Archive Retrieval: InProgress (2014-11-17T16:20:53...../None) Not completed yet. But that's probably an other issue :).

wmariuss commented 9 years ago

Because is not uploaded into glacier yet. Wait, bacause glacier is upload very slow.

norpol commented 9 years ago

Thanks for taking care of my issue, it's working now. :) Have a nice time.

wmariuss commented 9 years ago

:)

GamjaPower commented 9 years ago

Thanks @norpol