I am trying to setpup a cronjob that backups the server account but I wish to have it backup to a different directory instead of the default /backups
What I would like to do is have the backup script drop the backups in to a date stamped folder, example.
Using the following command
~iworx/bin/backup.pex --domains all --output-dir /backups/$(date +%Y-%m-%d)/ --quiet --filename-format %D-%t-%b.%d.%Y --email [email protected]
It drops all backups into the / folder instead of the /backups/2020-09-30 folder also note if fails to create the 2020-09-30 folder as well.
I know I have to be doing something off, but darn if I can see it.
Please can someone point me in the correct direction.