Append current date to the filename via Cron?

后端 未结 4 1487
陌清茗
陌清茗 2020-12-09 07:12

I\'ve created a Cron task at my webhost to daily backup my database and I would like it to append the current date to the filename.

My Cron job looks like this

4条回答
  •  悲&欢浪女
    2020-12-09 08:18

    You should use `` instead of '' around the command you want to execute to generate the current date for your filename.

提交回复
热议问题