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.1.tar.gz (4.1 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.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for backuprotation-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bc2c1e239004f8f1fadbf830ff1780f34b912c8dd48a095e7465cbcdbfc98558
MD5 2e751daea146cb14b0392fb05043e80d
BLAKE2b-256 b61ab4708801ae72c288d94211b8eec1a51c5c901c3cc1389e5cb79596ef7e8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backuprotation-0.0.1-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.1

File hashes

Hashes for backuprotation-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7db69d2e43442d5646325d3d239e60bdd6e7400170382877547483ace4f1b3ec
MD5 f8009b4ea678484a15fe2d13b8584fdc
BLAKE2b-256 1c7cf8573f4f576d9560002c7eef0f02116f4fe1ed22575d5f49eb273653b33c

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