• 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!

Every 5 Hr, Automatically Backup my database

Fyruz

★★★★★
Joined
Feb 7, 2009
Messages
556
Reaction score
19
Location
127.0.0.1
Hello i want to implement a system that every 5 hr make a backup of my database in 1 folder, i use ubuntu, i will rep
 
10 Ways to Automatically & Manually Backup MySQL Database - Noupe Design Blog
I used something like:
How to Backup MySQL Database automatically (for Linux users) | Backup HowTo
Here is special script for Ubuntu:
Ubuntu Linux Backup MySQL server Shell Script

Manual backup:
You must install:
PHP:
apt-get install mysql-client
Then execute in Putty:
PHP:
mysqldump -u root -pPASSWORD --all-databases | gzip > /var/db_backup/database_`date '+%m-%d-%Y-%H-%M'`.sql.gz
PASSWORD = your password to mysql (no space between p and password)
dont forget to create /var/db_backup folder and set rights to write

what %Y %d ... mean:
Programming in Lua : 22.1

------------------
On normal 2 core dedic backup of 150MB database should take less then 5 seconds.
 
Last edited:
Back
Top