Skip to main content

A tool for rotating backups

Project description

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.

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

backuprotation-0.0.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backuprotation-0.0.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file backuprotation-0.0.3.tar.gz.

File metadata

  • Download URL: backuprotation-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for backuprotation-0.0.3.tar.gz
Algorithm Hash digest
SHA256 27f7366412257073bd5a47c307257242fee0879d8bbe7ee526c73c3dffbaefc7
MD5 ead573c5df8155d1284d77c1c9ed123f
BLAKE2b-256 c97404428654e76c4f26123e1b2d896da1d84034f98ac79b3ba59145f8b0dce1

See more details on using hashes here.

File details

Details for the file backuprotation-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: backuprotation-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for backuprotation-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58011be23b54268c8e8a72b103c9cb53f97ecb57242326d6a974e78f61283b7e
MD5 2e118871a9889a037f2f9e77f3f4ffd3
BLAKE2b-256 8299ba7905e2916caaa8ba317e4e99885c6f5156eb471bd06e8e985b3389c020

See more details on using hashes here.

Supported by

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