![]() |
Weekly overwriting cron script ?
I have to setup a cron scrypt that backups my database and overwrites every week. I once had a mysql script line that writes every day a backup with the name of the database + day (for example myforum_monday) and therefore overwrites every week. Do you know how to do that?
|
Here it is
Code:
mysqldump --user=xxxxxxx --password=xxxxxxxx --all-databases >/.../`date +%u`.sql |
This will do the job for you ;
https://vborg.vbsupport.ru/showthread.php?t=126925 One of the options in the config is the date format - if you set it such that it's just Monday/Tuesday etc then it will overwrite any existing backup of the same name. |
All times are GMT. The time now is 06:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|