Active Memory
Backup your files to Amazon Web Services in a way that slowly forgets! I’ve learned that this way is refered to as the [‘Grandfather, father, son’](http://en.wikipedia.org/wiki/Backup_rotation_scheme#Grandfather-father-son) strategy.
This script copies a file to Amazon S3 and rotates it.
The filename will have a date stamp added before the first . in the filename. Do not add a timestamp yourself, this will cause the script to treat the file as a unique file and the rotation won’t work!
Rotation works as follows: - Keep files from the last X days - After that, keep Y files spaced at least a week apart - After that, keep Z files spaced at least 30 days apart
## Installation
pip install dcu.active-memory
## Usage
Export the following environment variables: - export AWS_ACCESS_KEY_ID=yourkeyidhere - export AWS_SECRET_ACCESS_KEY=yoursecretkey
You can also use one of the other methods supported by boto.
upload_rotate.py bucket prefix file.
See python upload_rotate.py -h for more info.
Metadata
Release files for dcu.active-memory 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dcu.active-memory-0.2.0.tar.gz | 4.9 kB | Details |
Release files / dcu.active-memory-0.2.0.tar.gz
| Download URL | dcu.active-memory-0.2.0.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad3dd4da0f83f9c6fed274bdb66e3c13e99de0448386149ce43ac575ba076a2b
|
|
BLAKE2b-256 checksum How to use checksums |
d15880c22e848445048e448f954e4100bafb5db4d1c5f5fbb2e83b1abaebcabe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |