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

Another issue with python 2.6 #6

Closed tk422 closed 11 years ago

tk422 commented 11 years ago

Get this when actually doing a glacier backup:

013-02-07 13:36:12,158 INFO: Backing up /xxx/xxxx/ Password (blank to disable encryption): Password confirmation: 2013-02-07 13:36:15,826 INFO: Compressing... Traceback (most recent call last): File "/usr/local/bin/bakthat", line 9, in load_entry_point('bakthat==0.3.1', 'console_scripts', 'bakthat')() File "/usr/local/bin/bakthat.py", line 528, in main app.run() File "/usr/local/lib/python2.6/dist-packages/aaargh.py", line 157, in run return func(kwargs) File "/usr/local/bin/bakthat.py", line 357, in backup with tarfile.open(fileobj=out, mode="w:gz") as tar: AttributeError: 'TarFile' object has no attribute 'exit**'

Looks like another 2.6 issue http://stackoverflow.com/questions/6086603/statement-with-and-tarfile

tsileo commented 11 years ago

Hi,

I made an update, can you please install from source and tell me if everything is OK before I release 0.3.2 ?

$ git clone https://github.com/tsileo/bakthat.git
$ cd bakthat
$ sudo python setup.py install

Thanks !

tsileo commented 11 years ago

I pushed the changes on pypi so you can also upgrade with pip/easy_install.

$ pip install --upgrade bakthat

Let me know if everything is OK !