https://github.com/deeagle/rob
RemoveOldBackups-Script to remove old iterative file sets per cronjob, identified by path and prefix
https://github.com/deeagle/rob
backup-script backup-utility python-script python3
Last synced: 5 months ago
JSON representation
RemoveOldBackups-Script to remove old iterative file sets per cronjob, identified by path and prefix
- Host: GitHub
- URL: https://github.com/deeagle/rob
- Owner: deeagle
- Created: 2021-07-15T13:13:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-10-27T08:50:13.000Z (8 months ago)
- Last Synced: 2025-10-27T10:34:27.520Z (8 months ago)
- Topics: backup-script, backup-utility, python-script, python3
- Language: Python
- Homepage:
- Size: 207 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# rob - remove old backups
[](https://github.com/deeagle/rob/actions/workflows/ci.yml)
[](https://github.com/deeagle/rob/actions/workflows/release.yml)
[](https://www.python.org/)
[](https://hub.docker.com/repository/docker/docdee/robpy)
Very simple implementation of a configurable backup management (file-level).
## Config
It's very basic and supports folders with files and prefix only.
I support some spots to place the configuration. You can install
a fresh version via:
- in script folder
`cp rob.dist.yml rob.yml`
- in users home folder
`cp rob.dist.yml ~/.rob.yml`
You can config the following keys:
```yml
---
# rob.yml
Common:
- keep:
files: 10
path: /tmp/
file_prefix: db-backup
- keep:
files: 3
path: /tmp/
file_prefix: mega-backup
```
Notes:
- old `config.yml` files are deprecated but still loaded.
## Usage
Supported commands are:
- `-h` for help
- `-d` for active deletion mode (*dry run* is default)
There is a `docker-compose.yml` for local testing.
## Dependencies
- `pyyaml` ([pyyaml](https://pypi.org/project/PyYAML/))
## Links
- [CHANGELOG](CHANGELOG.md)