https://github.com/skillcoder/delete_purged_volumes_bareos
Script for Delete Purged Volumes from Bareos/Bacula Catalog and free disk space
https://github.com/skillcoder/delete_purged_volumes_bareos
bacula bareos bareos-delete-old-volumes cleaner delete disk free jobs old purge volumes
Last synced: 3 months ago
JSON representation
Script for Delete Purged Volumes from Bareos/Bacula Catalog and free disk space
- Host: GitHub
- URL: https://github.com/skillcoder/delete_purged_volumes_bareos
- Owner: skillcoder
- Created: 2018-09-19T16:13:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T17:20:06.000Z (over 6 years ago)
- Last Synced: 2025-01-13T23:33:05.963Z (5 months ago)
- Topics: bacula, bareos, bareos-delete-old-volumes, cleaner, delete, disk, free, jobs, old, purge, volumes
- Language: Python
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Delete Purged Volumes Bareos/Bacula
Script for Delete Purged Volumes from Bareos/Bacula Catalog and free disk space
It removing volumes from catalog that have been marked 'Purged', and delete backup vols from disk
Deletion rules:
* Don't delete full backup if:
- we have less than 4 fulls
- we have any of incremental/diff backup dependent on this full
* Don't delete diff backup if:
- we have less than 3 diffs
- we have any of incremental backup dependent on this diff
* Don't delete incremental backup if:
- we have any of incremental backup dependent on this incremental# Bareos prerequisite config
* Make sure that `Recycle = No` is set in bacula configs for all volumes
- if you have any vols with Recycle = yes script tell you about it
* Script now support setup with one device with same relative archive path# Install
`sudo crontab -e -u bareos`
`3 5 * * * /path/to/delete_purged_volumes_bareos.py`
Run (at 5:03) any time before/after all backup done# Config
Change this vars in top of script
```
dry_run
my_catalog_name
my_sd_device_name
sd_conf, storages_conf, dir_conf
```