Skip to main content

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.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dcu.active-memory 0.3.0
File Interpreter ABI Platform
dcu.active_memory-0.3.0-py2.7.egg Legacy Egg format - - Details

Release files / dcu.active_memory-0.3.0-py2.7.egg

Download URL dcu.active_memory-0.3.0-py2.7.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
771a49f591269c5ccb7e8a1cdc24fea85c9f7af08c94ce1dccb1823a02562b98
BLAKE2b-256 checksum
How to use checksums
30c9c064151af1271bece11a38e9ea18d37d929521613d81de70d5107f5862dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page