Host-based backup of VMware vSphere VMs.
Post Reply
Matt@Work
Enthusiast
Posts: 51
Liked: 14 times
Joined: May 29, 2013 7:41 am
Full Name: Matt Collier
Location: South Coast
Contact:

Trigger backup job on file creation

Post by Matt@Work »

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 :wink:
rennerstefan
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

Post by rennerstefan »

Hi

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
Mildur
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

Post by Mildur »

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
Product Management Analyst @ Veeam Software
Matt@Work
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

Post by Matt@Work »

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?
rennerstefan
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

Post by rennerstefan »

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
Stefan Renner

Veeam PMA
Post Reply

Who is online

Users browsing this forum: No registered users and 27 guests