Wjunction Nightly DB Backup

Status
Not open for further replies.

Dj Mad

Banned
Banned
1,500
2009
176
0
So just wondering how can i set up a cron likes wjunctions where it takes a copy of the db and closes the forum,i know the basics of cron but not the db backup and closing of the forum?Any help would be much apprecatied.
 
25 comments
why u need mod :| for that simple work if you have ssh access then its so easy to take backup if not use mysqldumper using this i can take big dump backup
 
There is also no need to close the forum. You are just reading records.

Just use file manager to create a folder called storage under the /home/YOUR_Folder so it is not accessible to the public.

In cron choose run once a day and use this command line :
mysqldump -u YOUR_Username -pYOUR_Password YOUR_Databasename | gzip -9 > /home/YOUR_Folder/storage/YOUR_Databasename.sql.gz
 
Status
Not open for further replies.
Back
Top