Client Run Before Job with different scripts for different backup levels

22 views
Skip to first unread message

Leon Bartle

unread,
May 14, 2024, 5:25:01 AM5/14/24
to bareos-users
Hi there!

Is there a way to run different commands with the "Run Script" Command, depending on the Backup level?

For example on a full backup, it should run "/home/script1.sh -n", but on diff and incr backups, it should run "/home/script2.sh -n -m".

I only found  the character substitution "%l", but it does not change the actual command being run, thus it would require some kind of extra switching script to be installed on every client, which would make automation really hard. 

Have a wonderful day!
Leon

Bruno Friedmann (bruno-at-bareos)

unread,
May 14, 2024, 5:59:44 AM5/14/24
to bareos-users
Maybe you can use the %l in a major script which decide then action corresponding the the level ?

Leon Bartle

unread,
May 14, 2024, 6:31:23 AM5/14/24
to bareos-users
Hi, thanks for the reply!

Yes, that would be the "some kind of extra switching script to be installed on every client".
I was hoping for a pure server-side solution, which doesn't require installing any further scripts on the client.

Reply all
Reply to author
Forward
0 new messages