This question already has an answer here:
- What's wrong with these two cron jobs? 3 answers
I have this crontab
* * * * * tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant
It does not work. But if I do
tar -czf /backup/$(date +%F--%T)-localusers.tgz /vagrant/
Anybody have a clue what's going on? I do keep getting a mail though:
N 10 (Cron Daemon) Thu Aug 23 10:43 28/1130 "Cron <root@localhost> tar -czf"