Hi,
I am trying to run a cronjob to get a zfs snapshot monthly and I get the following error message:
Here is
Can anyone please help me figure out the obvious error?
Thank you
I am trying to run a cronjob to get a zfs snapshot monthly and I get the following error message:
Code:
/bin/sh: Syntax error: end of file unexpected (expecting ")")
/bin/sh: Syntax error: Error in command substitution
Here is
my crontab -l
Code:
# Automated ZFS backups monthly (last day of the month)
59 23 28-31 * * [ $(date -d +1day +%d) -eq 1 ] && /usr/local/bin/bash /root/myScripts/zfs-snapshot.sh zroot monthly 13
Can anyone please help me figure out the obvious error?
Thank you