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

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

The following commands make use of the command line interface of P5 and can be used to start a Synchronize- or ArchivePlan:
 To start a backup job, issue:
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c SyncPlan <name> submit now
where <name> reflects the name of your Synchronize plan. If unsure, issue the command
/usr/local/aw/bin/nsdchat -s awsock:/:@: -c SyncPlan 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).