K
K
Kalombyr2018-07-23 20:00:48
Backup
Kalombyr, 2018-07-23 20:00:48

How to automatically remove Incremental and diff after Full in Bareos/Bacula?

Good afternoon!
With a full backup, all inc and diff backups remain on the disk,
in order to save space, I would like them to be automatically deleted if Full is successful.
Do I understand correctly that this behavior is only possible by writing a script that will be executed after completion?
Then the next question immediately arises - what is the best way to write this script and how to access and determine the Volumes that need to be deleted and which not? I mean, maybe there are built-in tools for setting "scripts" of actions so that you don't have to parse the output of bconsole?
PS I'm reading the Doc, I can't find the scripts, but I feel like I'll finish reading it in full in a week...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Doc44, 2018-07-23
@Doc44

With a full backup, all inc and diff backups remain on the disk,
in order to save space, I would like them to be automatically deleted if Full is successful.

Often, more than just the last backup is needed.

D
Dmitry, 2018-07-23
@Tabletko

They don't need to be removed. Limit their number and retention time and they will be cyclically overwritten when the retention time expires.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question