Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - alireza_salehi

Pages: [1]
1
CentOS 7 Problems / how to create cron job with date parameters
« on: January 14, 2020, 07:29:25 AM »
hi
i want to create cron job like this from user panel:

Code: [Select]
mysqldump -u uuuu -pxxx --default-character-set=utf8 myuser_db | gzip > /home/myuser/backups/db-`date +\%Y\%m\%d-\%H\%M`.sql.gz
but date parameters never works and i see db-{Q3}.sql.gz in output folder,
how can i create a cron job inside user panel with date parameters and formatting?

Pages: [1]