{"id":20226295,"url":"https://github.com/skillcoder/delete_purged_volumes_bareos","last_synced_at":"2026-06-11T07:31:25.664Z","repository":{"id":144365276,"uuid":"149478480","full_name":"skillcoder/delete_purged_volumes_bareos","owner":"skillcoder","description":"Script for Delete Purged Volumes from Bareos/Bacula Catalog and free disk space","archived":false,"fork":false,"pushed_at":"2018-09-19T17:20:06.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T12:47:56.580Z","etag":null,"topics":["bacula","bareos","bareos-delete-old-volumes","cleaner","delete","disk","free","jobs","old","purge","volumes"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skillcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-19T16:13:02.000Z","updated_at":"2018-10-15T10:34:01.000Z","dependencies_parsed_at":"2023-04-28T21:39:29.319Z","dependency_job_id":null,"html_url":"https://github.com/skillcoder/delete_purged_volumes_bareos","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/skillcoder/delete_purged_volumes_bareos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skillcoder%2Fdelete_purged_volumes_bareos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skillcoder%2Fdelete_purged_volumes_bareos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skillcoder%2Fdelete_purged_volumes_bareos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skillcoder%2Fdelete_purged_volumes_bareos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skillcoder","download_url":"https://codeload.github.com/skillcoder/delete_purged_volumes_bareos/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skillcoder%2Fdelete_purged_volumes_bareos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34188272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bacula","bareos","bareos-delete-old-volumes","cleaner","delete","disk","free","jobs","old","purge","volumes"],"created_at":"2024-11-14T07:17:13.127Z","updated_at":"2026-06-11T07:31:25.637Z","avatar_url":"https://github.com/skillcoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Delete Purged Volumes Bareos/Bacula\nScript for Delete Purged Volumes from Bareos/Bacula Catalog and free disk space  \nIt removing volumes from catalog that have been marked 'Purged', and delete backup vols from disk  \nDeletion rules:  \n * Don't delete full backup if:\n   - we have less than 4 fulls\n   - we have any of incremental/diff backup dependent on this full\n * Don't delete diff backup if:\n   - we have less than 3 diffs\n   - we have any of incremental backup dependent on this diff\n * Don't delete incremental backup if:\n   - we have any of incremental backup dependent on this incremental\n\n# Bareos prerequisite config\n * Make sure that `Recycle = No` is set in bacula configs for all volumes\n   - if you have any vols with Recycle = yes script tell you about it\n * Script now support setup with one device with same relative archive path \n\n# Install\n`sudo crontab -e -u bareos`  \n`3 5 * * * /path/to/delete_purged_volumes_bareos.py`  \nRun (at 5:03) any time before/after all backup done  \n\n# Config\nChange this vars in top of script  \n```\ndry_run\nmy_catalog_name\nmy_sd_device_name\nsd_conf, storages_conf, dir_conf\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskillcoder%2Fdelete_purged_volumes_bareos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskillcoder%2Fdelete_purged_volumes_bareos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskillcoder%2Fdelete_purged_volumes_bareos/lists"}