Date Stamping a Cron Job Backup.
-
I want to run a cron job to automate backing up of my database, but I would like it to automatically add the date to each backup file name to prevent overwriting the previous backup.
I’ve got the basic command line as… mysqldump -u(username) -p(password) (databasename) >
(pathtofilelocation)(filename.sql)
Is it possible just to add some code to this to add the date stamp to the back up? Or can anyone recommend a similar simple way of executing this task.
Thanks,
newts.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Date Stamping a Cron Job Backup.’ is closed to new replies.