标签: mysql crontab
mysqldump -u user -pPassword databasename | gzip > /home/sandra/backup/databasename-$(date +%Y-%m-%d-%H.%M.%S).sql.gz
这在shell中正确执行,但是当放入crontab时会产生错误:
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
任何想法我做错了什么?