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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backuprotation-0.0.2.tar.gz.
File metadata
- Download URL: backuprotation-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e6716c2dc72c3c163bbe117d9506c7eb6a6fd1924037724a27145375f86a2bc
|
|
| MD5 |
634eb673a718cbf4af1229357037d5ae
|
|
| BLAKE2b-256 |
9d71f92adbf1323880b499314d4c3af1aa27f85a781204075903604525ac3500
|
File details
Details for the file backuprotation-0.0.2-py3-none-any.whl.
File metadata
- Download URL: backuprotation-0.0.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b25ebedae93a7b81e274eac4f43d3691dd3a04ffe13187ed22fbe4dadc2fe4b
|
|
| MD5 |
9440c8d2b99694b4fafb79e06121d7c4
|
|
| BLAKE2b-256 |
fb67216bd77adf41244ad96dc5bad0bcb2850a0688b93aaf305e98496c51cbcc
|