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/
It works.
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"
%
in crontabs. – Jeff Schaller Aug 23 '18 at 14:49date
inside of a cron tab job? – steeldriver Aug 23 '18 at 14:51