Hi
Is there a way for Veeam B&R to start a VM backup job when a specific file is created on a target VM. I have a scheduled job which exports a CSV file and I would like upon detection of that file for Veeam to trigger a backup job and then delete that file from the VM upon completion.
Is this possible? I couldn't see anything for this specific niche use case
-
- Enthusiast
- Posts: 51
- Liked: 14 times
- Joined: May 29, 2013 7:41 am
- Full Name: Matt Collier
- Location: South Coast
- Contact:
-
- Veeam Software
- Posts: 688
- Liked: 150 times
- Joined: Jan 22, 2015 2:39 pm
- Full Name: Stefan Renner
- Location: Germany
- Contact:
Re: Trigger backup job on file creation
Hi
I’d say sure it is.
Just create a powershell script that monitors your file creation and executes the job.
Thanks
I’d say sure it is.
Just create a powershell script that monitors your file creation and executes the job.
Thanks
Stefan Renner
Veeam PMA
Veeam PMA
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Trigger backup job on file creation
Hi Matt
VBR doesn‘t monitor files in a vm. So it‘s not possible to start a job after there was a change inside the vm.
You can extend your file export script to use Start-VBR to start your backup job after the export was done. Or you can use Job scripts to export your file, then the job runs, and after the job, you can use another script to remove the file.
Job scripts
VBR doesn‘t monitor files in a vm. So it‘s not possible to start a job after there was a change inside the vm.
You can extend your file export script to use Start-VBR to start your backup job after the export was done. Or you can use Job scripts to export your file, then the job runs, and after the job, you can use another script to remove the file.
Job scripts
Product Management Analyst @ Veeam Software
-
- Enthusiast
- Posts: 51
- Liked: 14 times
- Joined: May 29, 2013 7:41 am
- Full Name: Matt Collier
- Location: South Coast
- Contact:
Re: Trigger backup job on file creation
OK thanks for this. I run the task using a group managed service account, does this gmsa need permissions on the backup server in order to script the start of the backup job?
-
- Veeam Software
- Posts: 688
- Liked: 150 times
- Joined: Jan 22, 2015 2:39 pm
- Full Name: Stefan Renner
- Location: Germany
- Contact:
Re: Trigger backup job on file creation
no that won't be mandatory, you can also connect from the script to the Veeam server within the PowerShell script directly.
See: https://helpcenter.veeam.com/docs/backu ... ml?ver=110
See: https://helpcenter.veeam.com/docs/backu ... ml?ver=110
Stefan Renner
Veeam PMA
Veeam PMA
Who is online
Users browsing this forum: No registered users and 27 guests