• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Automatic database backup after server save.

narko

vertrauenswürdig ~
Joined
Oct 19, 2008
Messages
1,317
Solutions
2
Reaction score
131
Location
Unknown
I've been looking around the forum for this but I'm a little bit lost when it comes to use crontabs. I'd apreciate if someone can explain me how to achieve this.

OS: Debian

Thanks in advance.
 
Solution
You can use this

Code:
crontab -u root -e
Code:
52 07 * * * mysqldump -u root -pYourDatabasePassword YourDatabaseName > /home/backups/Databasename-`date +\%Y-\%m-\%d`.sql
52 07 * * * mean daily at 7:52 am
You can use this

Code:
crontab -u root -e
Code:
52 07 * * * mysqldump -u root -pYourDatabasePassword YourDatabaseName > /home/backups/Databasename-`date +\%Y-\%m-\%d`.sql
52 07 * * * mean daily at 7:52 am
 
Solution
Back
Top