Script to create jobs automatically

PowerShell script exchange

Script to create jobs automatically

Veeam Logoby chrisBrindley » Thu Jan 22, 2015 6:38 pm

Need some help, we are using vmware and i am trying to get a script that will pull folder information and all vm servers inside and create jobs.
there are lots of scripts out there but they all seem like they do different things to create jobs

if i use the following names can someone help out
virtual center name is Vcenter1

Main folder is called managed servers, under this folder is individual folders for customers called customer1 and customer2, under these folders are the actual vm servers.

the script needs to add the customer 1 and 2 folders to their own individual job with the following options

7 day retention, incremental with create synthetic full on saturday
enable in line data dedupe
exclude swap

Compression: dedupe friendly / storage optimization local target

run on a random time daily

set the repository to data1

the reason i ask is i have 2500 jobs to create

thanks
chrisBrindley
Enthusiast
 
Posts: 43
Liked: 3 times
Joined: Wed Aug 21, 2013 1:15 pm

Re: Script to create jobs automatically

Veeam Logoby v.Eremin » Fri Jan 23, 2015 10:59 am

the script needs to add the customer 1 and 2 folders to their own individual job with the following options

Folders can be found and added to jobs via the following script:

Code: Select all
$FirstFolder = Find-VBRViFolder -Name "Name of first folder"
$SecondFolder = Find-VBRViFolder -Name "Name of second folder"

$FirstJob = Get-VBRJob -Name "Name of first job"
Add-VBRViJobObject -Job $FirstJob -Entities $FirstFolder

$SecondJob = Get-VBRJob -Name "Name of second job"
Add-VBRViJobObject -Job $SecondJob -Entities $SecondFolder



7 day retention, incremental with create synthetic full on saturday
enable in line data dedupe
exclude swap
Compression: dedupe friendly / storage optimization local target
run on a random time daily
set the repository to data1

It might be worth searching this subforum, as all of those questions have been covered previously.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13296
Liked: 974 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 6 guests