Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 178545

Multiple scheduling in /var/spool/cron/crontab/root

$
0
0

Hi all,

 

I tried to insert multiple scheduling in /var/spool/cron/crontab/root, and working fine,

 

0 0 * * 1-4 /vmfs/volumes/datastore/ghetto/ghettoVCB.sh -f /vmfs/volumes/datastore/ghetto/vms_to_backup1  >  /vmfs/volumes/datastore/ghetto/ghettoVCB-backup-$(date +\%s).log

0 0 * * 2-5 /vmfs/volumes/datastore/ghetto/ghettoVCB.sh -f /vmfs/volumes/datastore/ghetto/vms_to_backup2  >  /vmfs/volumes/datastore/ghetto/ghettoVCB-backup-$(date +\%s).log

0 0 * * 3-6 /vmfs/volumes/datastore/ghetto/ghettoVCB.sh -f /vmfs/volumes/datastore/ghetto/vms_to_backup3  >  /vmfs/volumes/datastore/ghetto/ghettoVCB-backup-$(date +\%s).log

 

But if I insert multiple line in rc.local after the reboot of the host I found in root only the first line

0 0 * * 1-4 /vmfs/volumes/datastore/ghetto/ghettoVCB.sh -f /vmfs/volumes/datastore/ghetto/vms_to_backup1  >  /vmfs/volumes/datastore/ghetto/ghettoVCB-backup-$(date +\%s).log


Viewing all articles
Browse latest Browse all 178545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>