I want to automate my airgapping with a programmable power strip that turns off one of two USB external HDDs. I can write a script to unmount the drive, turn off the power, turn on the other one, and remount the other one.
But I want to run this script only after 2 jobs have completed.
And then, after those 2 jobs run another time, run the script to swap the drives.
Right now I see only a place to run a script within a job description. Is there any way, within Veeam, to do what I want? Or do I need to call the same script from both jobs and embed the AND() and swapping logic in the script?
Anyone have a canned script that I can edit? Thanks!
-
- Enthusiast
- Posts: 37
- Liked: 4 times
- Joined: Dec 06, 2019 7:29 pm
- Full Name: Steven Kan
- Contact:
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Run script only after N jobs complete?
Hi Steven
You could write a script outside of veeam. Use the task scheduler to get the job history and do your magic to swap the drives when needed.
I ask myself, if it's secure if you can use a script to activate a disk over the powerstrip. A hacker can do the same if he has access to your backup server.
The scripts are on the backup server and everyone with administrative permission can run them.
You could write a script outside of veeam. Use the task scheduler to get the job history and do your magic to swap the drives when needed.
I ask myself, if it's secure if you can use a script to activate a disk over the powerstrip. A hacker can do the same if he has access to your backup server.
The scripts are on the backup server and everyone with administrative permission can run them.
Product Management Analyst @ Veeam Software
Who is online
Users browsing this forum: No registered users and 5 guests