Hi, I'm trying to get the following cron job to run, set up through the Freenas GUI:
But each night it shows it fails by emailing me:
Anyone able to spot the problem? It works fine when I execute it from the command line directly
Thank you!
Code:
scp freenas@192.168.10.1:/cf/conf/config.xml /mnt/my_pool/Data/Backups/pfsense/`date +\%Y\%m\%d\%H\%M\%S`-config-fw.xml
But each night it shows it fails by emailing me:
Code:
Email title: Cron <root@kenny> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/root/bin" scp freenas@192.168.10.1:/cf/conf/config.xml /mnt/my_pool/Data/Backups/pfsense/`date +\ Email contents: /bin/sh: Syntax error: EOF in backquote substitution /bin/sh: Syntax error: Error in command substitution
Anyone able to spot the problem? It works fine when I execute it from the command line directly
Thank you!
Last edited by a moderator: