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

Problems with api #68

Open alexsilva opened 10 years ago

alexsilva commented 10 years ago

https://github.com/alexsilva/smartbackup

The link above is the repo I work, implementing some plugins.

The api plugin was working fine until I get to work with a local backend. https://github.com/alexsilva/smartbackup/blob/master/backuptools/backends.py#L98

This part of the model "Backups", forces me to reset the entire function!

if kwargs.get("config"):
   conf = load_config(kwargs.get("config"))

    profile = conf.get(kwargs.get("profile", "default"))

     s3_key = hashlib.sha512(profile.get("access_key") +
                                profile.get("s3_bucket")).hexdigest()
     glacier_key = hashlib.sha512(profile.get("access_key") +
                                 profile.get("glacier_vault")).hexdigest()

All this so I can use the api functions already set in lib "bakthat". https://github.com/alexsilva/smartbackup/blob/master/backuptools/models.py#L22