Arcserve UDP Agent (Linux) provides the capability to define your own schedule using a script to run a job. If you require to run a job periodically and you cannot schedule using the web UI, you can create a script to define such schedule. For example, you want to run a backup at 10:00 PM on the last Saturday of every month. You cannot define such schedule using the web interface, but you can create a script to define such schedule.
You can submit a backup job without specifying any schedule (using the None option on the Advanced page). Use the Linux Cron scheduler to define your customized schedule and run the d2djob command to run the job.
Note: The following procedure assumes that you have submitted a backup job without specifying any schedule and you want to run a backup at 10:00 PM on the last Saturday of every month.
Follow these steps:
#!/bin/bash
LAST_SAT=$(cal | awk '$7!=""{t=$7} END {print t}')
TODAY=$(date +%d)
if [ "$LAST_SAT" = "$TODAY" ]; then
source /opt/CA/d2dserver/bin/setenv
d2djob --run=your_job_name --jobtype=your_job_type #run your backup job here
fi
Note: You must provide the necessary execution permission to the file.
00 22 * * Saturday root runjob.sh
Cron runs the runjob.sh script at 10:00 PM every Saturday. In runjob.sh, it first checks if today is last Saturday of the month. If yes, it uses d2djob to run the backup job.
The job schedule is customized to run a backup at 10:00 PM on the last Saturday of every month.
Copyright © 2015 Arcserve.
All rights reserved.
|
|