Executing a Plan with a custom time schedule
Posted by Sven Koester, Last modified by Sven Koester on 18 May 2007 12:03
It is sometimes required to perform the configured jobs, e.g. a backup, with a different schedule than offered by the PresSTORE user interface. For instance, in case you want to perform a job twice a day, you cannot instruct PresSTORE via web interface to do so.

But there is another way to achieve that:
Create an Archive- or BackupPlan according to your needs using the PresSTORE web interface and execute that plan using a command via cron.

The following commands make use of the command line interface of PresSTORE and can be used to start a Backup- or ArchivePlan:
 To start a backup job, issue:
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c BackupPlan <name> submit now
where <name> reflects the name of you backup plan. If unsure, issue the command
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c BackupPlan names
to get a list of names.

The command to issue in order to start an archive plan is:
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c ArchivePlan <name> submit now
where <name> reflects the name of you archive plan. If unsure, issue the command
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c ArchivePlan names
to get a list of names.


The Unix variants use different ways to schedule a job for execution, issue
man 5 crontab
in order to get information about how to instruct cron to start the job.
In general, cron uses a table named crontab where each line holds a time schedule and a command to execute.
The following example entry executes an ArchivePlan myname every sunday at 4:10 pm:
16 10 * * sun
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c ArchivePlan myname submit now


(980 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).