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

Support for prefixing a key name in S3 backend #58

Closed alexkehayias closed 3 years ago

alexkehayias commented 10 years ago

Would be great to add support for a prefix to add to uploading files to s3. This would allow organizing backups within an existing bucket nested in directories (in S3 it's just a key).

Could add a configuration variable called prefix and check for a prefix any time you generate a key name (upload, download). How would this effect the restore behavior? Seems like changing upload/download/ls in backends would cover it. Would be happy to add work on this for S3.

iurisilvio commented 10 years ago

:+1:

I'm trying to use bakthat but I really need this feature.

As a side note, I expected the --key parameter to give me this feature, but looks like it is an access key to bakmanager.