The following contains instructions on how to schedule a job using the command line.
This is extremely useful for deployment scenarios.
Help Info / Manual
nsCmd.exe -s c:\backupplan\natesbackup.nbk -t c:\backupplan\natesbackupschedule.ini
Where the .ini file would include all the needed things for the schedule to be injected and the .nbk file would be the script that the schedule would be set to run.
Below is some sample parameters and arguments that have already been documented as part of the xSP remote settings.
ScheduleName = <name>
- Optional, allows schedule naming per user’s preference. Default is the section name.
The BackupSchedule section (time-to-run specification)
Schedule types and associated values are:
ScheduleType = <once / minute / hourly / daily / weekly / monthly>
- Required, specify only one
StartDate = <mm-dd-yyyy>
StartTime = <hh-mm-ss>
- Optional, time is 24 hour format, default is current date and time
Parameters associated with each possible schedule type are:
<no additional params>
NumMinutes = <number>
NumSeconds = <number>
- Defines the runtime interval by minute and second
NumHours = <number>
- Defines the runtime interval by hours
NumDays = <number>
- Normally 1, meaning to run every day
Mon = <boolean, 1 or 0>
Tue = <boolean, 1 or 0>
Wed = <boolean, 1 or 0>
Thu = <boolean, 1 or 0>
Fri = <boolean, 1 or 0>
Sat = <boolean, 1 or 0>
Sun = <boolean, 1 or 0>
- These are defined as days to include
WeekNum = <number>
- Defines the runtime interval by weeks
MonthNum = <number>
DayNum = <number>
- Defines the runtime interval by months and day of month
Here is the template. This will be saved as an .ini file.
ScheduleType=<once / minute / hourly / daily / weekly / monthly>
Mon=<boolean, 1 or 0>
Tue=<boolean, 1 or 0>
Wed=<boolean, 1 or 0>
Thu=<boolean, 1 or 0>
Fri=<boolean, 1 or 0>
Sat=<boolean, 1 or 0>
Sun=<boolean, 1 or 0>
ScheduleName=<My Backup Name>