cron
job is being used to call the /opt/vmware/appliance/bin/create-backup.sh
script to perform backups of VMware Cloud Director (vCD) 10.5.x, but does not execute correctly.cron
log:(root) CMDOUT (Failed to obtain current webserver certificate ID.)
create-backup.sh
from the vCD command line shell as root completes successfully.VMware Cloud Director 10.5.x
In VMware Cloud Director 10.5.x, the create-backup.sh
script does not contain the appropriate paths for the item to successfully be executed directly using cron
.
In order to call the create-backup.sh
using cron
, the PATH
environmental variable can be configured in the crontab
using the following steps:
PATH
environmental variable using the following command:env | grep PATH
PATH=
crontab
with the PATH
value retrieved using one of the following options:PATH
environmental variable to the top of the crontab
file, as in the following example:PATH
variable with this configuration.PATH
environmental variable before the create-back.sh
command, as in the following: