Skip to main content

A tarsnap backup manager

Project description

This package contains a pyCLI application that manages tarsnap backups and retention policies.

The ohsnap command

ohsnap will allow a user to create backups with retention policies.

Usage

Basic usage info is display when running ohsnap with no arguments.

$ ohsnap

usage: ohsnap [-b BINARY] {backup,list,purge} ohsnap: error: too few arguments

Combining -h or --help with any subcommand will provide more detailed info.

$ ohsnap -h backup

usage: backup [-h] [-l LOGFILE] [-q] [-s] [-v] [-C CWD] [-n NAME]

[-r RETENTION] [path [path …]]

positional arguments:

path paths to backup

optional arguments:
-h, --help

show this help message and exit

-l LOGFILE, --logfile LOGFILE

log to file (default: log to stdout)

-q, --quiet

decrease the verbosity

-s, --silent

only log warnings

-v, --verbose

raise the verbosity

-C CWD, --cwd CWD

directory to run the backup from

-n NAME, --name NAME

archive name

-r RETENTION, --retention RETENTION

integer and time identifier e.g. 1h, 3d, 6y

Example

To backup the spam and eggs directories with 1 day retention:

$ ohsnap backup –retention 1d –name spam-eggs spam eggs

To list existing archives created by the ohsnap manager:

$ ohsnap list

To purge archives that have outlived their retention policy:

$ ohsnap purge

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ohsnap-0.1.0a-20120508.tar.gz (14.3 kB view details)

Uploaded Source

File details

Details for the file ohsnap-0.1.0a-20120508.tar.gz.

File metadata

File hashes

Hashes for ohsnap-0.1.0a-20120508.tar.gz
Algorithm Hash digest
SHA256 04253bf2c70a1592f0e872899690b8e8503b4c30a2ba017f0212f0e72e7a7c2c
MD5 c9e404af45f9fa01df01585ab9d378d6
BLAKE2b-256 bb7a7049bb9203b5c41fa96705a306c206083c6ed20aea0ac47ce86151e7576b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page