I'm having some difficulties on understanding why the following cronjob does not work anymore:30 3 * * * /path/to/backup_script.sh && tar -czvf /path/to/archived/backups/retain_last_3_backups/backup-community_$(date '+%Y%m%dT%H%M%S').tar.gz -C /path/to/source/backup/folder/ .If I run it manually using the same user who own the crontab, it does work. It stopped to work when I edited it a couple of days ago adding && tar -czvf [...]should I call in a different way the date command? or escape the $ (I'm going to test this now, just noticed it)?Thanks to David Snchez Martn, I found the specific log, it report the following error: /bin/sh: 1: Syntax error: Unterminated quoted string
broken cron job after editing it
cron
The % symbols are special in a crontab entry, so you can't use them directly in your date format string.man 5 crontab writesThe sixth field (the rest of the line) specifies  the  command  to  be  run.   The       entire  command  portion of the line, up to a newline or % character, will be executed       by /bin/sh or by the shell specified in the SHELL variable of the cronfile.   Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command  as  standard input.