These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for backup failure on the new forum.
I keep getting this error when cron runs the backup script for my full backup that i run once a week..
sh: -c: line 0: syntax error near unexpected token Oct'
sh: -c: line 0:
(cd /tmp/.webmin/434094_9_backup.pl && (/bin/tar cf - virtualmin_* | gzip -c ) 2>&1 >/backup/full_backup/Wed Oct 27 16:00:02 2010/virtualmin.tar.gz) 2>&1'
the directory path i use is
/backup/full_backup/%c
it runs fine when i run it manually just not from cron
my daily incremental backup runs fine.
any sugestions how to fix this problem??
Seems to be a problem with the "%c" placeholder. There seem to be no quotes around the filename, making it interpret the date/time as a new parameter starting with the "Oct".
Actually, this might qualify as a VMin bug, since either the %c placeholder should be supported and the quotes should be there, or there should be a warning about using placeholders that can expand to text with spaces.
Do you have "Do strftime-style time substitutions on file or directory name" checked for the backup? What happens when you omit the "%c" for a test? You might want to use file name placeholders that don't contain spaces. Click the "time substitutions" checkbox link for a popup with available placeholders.
yes i do have "Do strftime-style time substitutions on file or directory name" checked
it works if i remove the %c or run the script now
Okay, if none of the coders read this here, you might wish to post this as a bug report in the Issues section. :) At least I assume it can be considered a bug, as explained before.