Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron job fails, manual job succeeds #85

Open
ecampos88 opened this issue Jul 24, 2018 · 1 comment
Open

Cron job fails, manual job succeeds #85

ecampos88 opened this issue Jul 24, 2018 · 1 comment

Comments

@ecampos88
Copy link

ecampos88 commented Jul 24, 2018

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants