Got it figured out.. Added to the first post, and below:
If you want to do these commands as tasks that run from cron directly, you'll want to use the following commands, correcting for your locations as appropriate:
cp /data/freenas-v1.db "/mnt/tank/`date \+%Y\%m\%d`.db"
- or -
cp /data/freenas-v1.db /mnt/tank/`date \+%Y\%m\%d`_`cat /etc/version | cut -d'-' -f2`_`cat /etc/version | cut -d'-' -f4`.db
Seems weird, but the code seems to escape the first % symbol, but not subsequent % symbols. Not sure if that's a bug or not. Asked a dev if this is expected or not. But the two above examples worked perfectly for me.
If you want to do these commands as tasks that run from cron directly, you'll want to use the following commands, correcting for your locations as appropriate:
cp /data/freenas-v1.db "/mnt/tank/`date \+%Y\%m\%d`.db"
- or -
cp /data/freenas-v1.db /mnt/tank/`date \+%Y\%m\%d`_`cat /etc/version | cut -d'-' -f2`_`cat /etc/version | cut -d'-' -f4`.db
Seems weird, but the code seems to escape the first % symbol, but not subsequent % symbols. Not sure if that's a bug or not. Asked a dev if this is expected or not. But the two above examples worked perfectly for me.