Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

README

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

Metadata

Release files for ohsnap 0.1.0a-20120508

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

Source distribution (sdist)

Source distribution for ohsnap 0.1.0a-20120508
File Size Uploaded Provenance Actions
ohsnap-0.1.0a-20120508.tar.gz 14.3 kB Without provenance Details for ohsnap-0.1.0a-20120508.tar.gz

Release files / ohsnap-0.1.0a-20120508.tar.gz

Download URL ohsnap-0.1.0a-20120508.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
04253bf2c70a1592f0e872899690b8e8503b4c30a2ba017f0212f0e72e7a7c2c
BLAKE2b-256 checksum
How to use checksums
bb7a7049bb9203b5c41fa96705a306c206083c6ed20aea0ac47ce86151e7576b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ohsnap 0.1.0a-20120508

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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