NAUbackup / VmBackup

XenServer simple backup script
228 stars 62 forks source link

Cron job fails, manual job succeeds #85

Open ecampos88 opened 5 years ago

ecampos88 commented 5 years ago

Hello, When I schedule the backup job using the same configuration file, the job fails with: ***WARNING - vm not found: vm-export=" The job completes using the exact .py and .cfg files. The preview also succeeds.

This is the cron job syntax I use: 25 10 TUE /usr/bin/python /Snapshots/VmBackup.py mypassword \ /Snapshots/MyConfig.cfg >> /Snapshots/Backups/ScheduledVmBackup.log 2>&1

Thank you in advance for any help!

NAUbackup commented 5 years ago

Does your VM contain any spaces or special characters? If so is it quoted properly? You should not need to escape the leading path "/" character for the configuration file path in your cron entry, though it probably doesn't hurt anything.