Skip to main content

Backuprotation

A minimalistic python tool which allows you to easily rotate your backups, whether they are a directory or files.

Installation

backuprotation is available through pip

pip install backuprotation

Usage

To rotate your backups which are stored in ./path simply run

backuprotation ./path

and backuprotation will look through ./path and keep the last ten directories while deleting the rest.

You can specify the amount of backups to keep with -n or --number

backuprotation -n 20 ./path

By default backuprotation looks for directories but it can also rotate files or both files and directories

backuprotation -f ./path        # files
backuprotation -fd ./path       # files and directories

If you're ever unsure of what effects backuprotation will have you can perform a dry-run to verify.

backuprotation --dry-run ./path

This will print out the changes that backuprotation would perform without actually changing the filesystem.

Metadata

Release files for backuprotation 0.0.3

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

Source distribution (sdist)

Source distribution for backuprotation 0.0.3
File Size Uploaded
backuprotation-0.0.3.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for backuprotation 0.0.3
File Interpreter ABI Platform
backuprotation-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 8.3 kB

Release files / backuprotation-0.0.3.tar.gz

Download URL backuprotation-0.0.3.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
27f7366412257073bd5a47c307257242fee0879d8bbe7ee526c73c3dffbaefc7
BLAKE2b-256 checksum
How to use checksums
c97404428654e76c4f26123e1b2d896da1d84034f98ac79b3ba59145f8b0dce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release files / backuprotation-0.0.3-py3-none-any.whl

Download URL backuprotation-0.0.3-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58011be23b54268c8e8a72b103c9cb53f97ecb57242326d6a974e78f61283b7e
BLAKE2b-256 checksum
How to use checksums
8299ba7905e2916caaa8ba317e4e99885c6f5156eb471bd06e8e985b3389c020
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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