I'm not having any success getting the below line to run in Cron. I've added / before % due to it being a special character. It works without the / when run directly from Terminal.
Eventually I'd like to run a recording from 11pm to 7am so am open to better suggestions. OS is Ubuntu Mint on an R-Pi3 Class10 32GB SD.
0 0 * * * arecord -f cd -d 60 -t wav | lame --preset 56 -mm - `date +/%Y/%m/%d/%H/%M`.mp3
Solution code:
0 0 * * * arecord -f cd -d 60 -t wav | lame --preset 56 -mm - /home/andy/`date +\%Y\%m\%d\%H\%M`.mp3