we have a script to archive some data using yesterdays date to name the created files. We're using the command below in cron but it doesn't work. It does work from the command line. Is our syntax correct? Any help would be appriciated.
archive.sh date -d yesterday +\%Y\%m\%d