Trigger copy job just after a backup job

52 views
Skip to first unread message

Łukasz Szczepanik

unread,
Feb 21, 2024, 5:54:41 AM2/21/24
to bareos-users
Hi Guys,


Do you know how to trigger copy job just after corresponding main backup finishes with success ?

I look into Bareos doc regarding copy/migration but I could not find any solution. All "Selection Types" do not met my requirements.
My goal is simple make a copy of backup just after the backup finishes with success.

Thanks!
  


Bruno Friedmann (bruno-at-bareos)

unread,
Feb 21, 2024, 9:08:12 AM2/21/24
to bareos-users
Hello Łukasz 

just a big warning: don't do that ! :-)

The why is when you are in the run script post state, the initial job is still not finished for Bareos and changes still happen afterwards.
You really don't want to try hard to confuse your database and Bareos installation. Some have tried and get hardly backfired ;-)

Typically for that kind of things, you may want to check if you can run copy job with selection pattern 

This should be modular enough to cover all your case.
Reply all
Reply to author
Forward
0 new messages