I have two backup jobs configured for similar sources. Both use a pre hook to export from a DB to a text file, and a post hook to delete the export again. I want to run both jobs at roughly the same time.
Currently, they're both started together, and one will complain that the export already exist (not a problem). But when the first job is done, it will remove the export file, and the second job will run into problems backing it up.
I see two possible solutions, but no way to implement them:
resticprofile must understand that the hooks are to be executed before/after both jobs, not for each of them.
- I could add a dependency to a job to only run when its sibling is done. I could manually set a different starting time, but that depends on when the first job is finished, which might differ significantly.
Any suggestions how to do this?
I have two backup jobs configured for similar sources. Both use a
prehook to export from a DB to a text file, and aposthook to delete the export again. I want to run both jobs at roughly the same time.Currently, they're both started together, and one will complain that the export already exist (not a problem). But when the first job is done, it will remove the export file, and the second job will run into problems backing it up.
I see two possible solutions, but no way to implement them:
resticprofilemust understand that the hooks are to be executed before/after both jobs, not for each of them.Any suggestions how to do this?