Possible Duplicate:
escaping double quotes and percent signs (%) in cron
I have the following command in cron:
5 6 * * * bash -c "tar -czf /backups/sites-server-files-rotate/sites_`date +%F`.tar.gz /backups/sites-server-files/"
But command doesn't get executed. And I can see the following in the cron log:
Apr 17 06:05:01 backup crond[9423]: (root) CMD (bash -c "tar -czf /backups/sites-server-files-rotate/sites_`date +)
It seems like % sign cuts the command in cron. Why? Do I have to escape it? And how?
%also. One can't find it using search. – Vladislav Rastrusny Apr 17 '12 at 11:34