I am trying to learn cron jobs. I am trying to ad the following in plesk:
I want this cron job to run everyday at 5:30pm
mysqldump -h mydomainip -u myusername -mypassword --add-drop-table -n --databases mydatabasefile > /var/www/vhosts/mydomain/database060721_1324.sql
The name of the file is stamped with the date and time (if there is an easier way of doing this, then please utilize it). Each file will have it's own unique name. The name will be based on the date and time. Currently my file contains the last two digits of the current year(see above) - 06 the year, the month 07, and the date - 21. There is an underscore then the time 1324 military time (or 1:34pm).
Can anyone please assist?
|