Skip to content

ESXi 5.5 Crontab GhettoVCB

August 18, 2015

vi /etc/rc.local.d/local.sh

/bin/kill $(cat /var/run/crond.pid)
/bin/echo “0 0 * * * /vmfs/volumes/datastore/ghettoVCB/ghettoVCB.sh -a > /vmfs/volumes/nfs/backups/ghettoVCB-backup-\$(date +%Y-%m-%d-%H%M%S).log” >> /var/spool/cron/crontabs/root
/usr/lib/vmware/busybox/bin/busybox crond
exit 0

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: