just tried to figure out how to display all job options.
Code
Code: Select all
$CreateJobName = "1"
$job_a = Get-VBRJob | where {$_.Name -eq $CreateJobName}
$schedule = $job_a |Get-VBRjobscheduleoptions
write-host $schedule
Code: Select all
Veeam.Backup.Model.CJobOptions
Start time: [05.04.2012 09:07:01], Latest run time: [05.04.2012 09:02:01], Next run time: [], Retry times on failure: [3], Retry timeout: [10 min], Daily options: [Enabled: True, DayNumberInMonth: Everyday, Days: Sun
day, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]Monthly options: [Enabled: False, Time: 05.04.2012 22:00:00, Day Number In Month: Fourth, Day Of Week: Saturday, Months: January, February, March, April, Ma
y, June, July, August, September, October, November, December]Periodically options: [Enabled: False, Period: 1 hour(s), ScheduleString: <scheduler><Sunday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Sunday><Mond
ay>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Monday><Tuesday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Tuesday><Wednesday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Wednesday><Thursday>0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Thursday><Friday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Friday><Saturday>0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0</Saturday></scheduler>]Continuous options: [Ena
bled: False]
Code: Select all
$CreateJobName = "1"
$job_a = Get-VBRJob | where {$_.Name -eq $CreateJobName}
$schedule = $job_a |Get-VBRjoboptions
write-host $schedule
Code: Select all
Veeam.Backup.Model.CJobOptions
Code: Select all
$CreateJobName = "1"
$job_a = Get-VBRJob | where {$_.Name -eq $CreateJobName}
$job_a.getoptions |gm
Code: Select all
TypeName: System.Management.Automation.PSMethod
Name MemberType Definition
---- ---------- ----------
Copy Method System.Management.Automation.PSMemberInfo Copy()
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
Invoke Method System.Object Invoke(Params System.Object[] arguments)
ToString Method string ToString()
IsInstance Property System.Boolean IsInstance {get;}
MemberType Property System.Management.Automation.PSMemberTypes MemberType {get;}
Name Property System.String Name {get;}
OverloadDefinitions Property System.Collections.ObjectModel.Collection`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] OverloadDefinitions {get;}
TypeNameOfValue Property System.String TypeNameOfValue {get;}
Value Property System.Object Value {get;set;}
I also tried also:
Code: Select all
Get-VBRJob|%{Export-VBRJob -Jobs $_ -FileName "e:\scripts\$($_.name).xml" -IncludeObjects}
Any idea how I can display such parameters and options?
Example: backup mode (Reverse Incremental/Incremental)