The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Automatic DB Backups?
I know sometimes I'm not at the forums and I know I don't make daily backups when I don't have the time
Is there any way to make it so I can save a backup on my server every single day (at 12am) and every day it will overwrite the previous day's backup Should I just do a cron job =/ ?? this would be greatly appreciated Thanks! |
#2
|
||||
|
||||
Cron job.
Make it run this line in SSH as a cronjob, either in crontab or in your cron.daily directory (or in CPanel if you have that): mysqldump --opt -u USERNAME -pPASSWORD DATABASE_NAME > /home/xxxxxxx/db/database.sql |
#3
|
||||
|
||||
thanks Erwin, I'll definately try that
|
#4
|
||||
|
||||
Hmmm it does backup except database.sql is 0 KB
Oo; |
#5
|
||||
|
||||
Did you make the directory you are saving to CHMOD 777?
|
#6
|
||||
|
||||
of course
but I put it in my /admin directory would that be a problem? |
#7
|
|||
|
|||
No, but run the command directly from SSH first to make sure it's working.
|
#8
|
||||
|
||||
You shouldn't really put it in a web-accessible directory for security reasons, unless you .htaccess the directory, but then you might get problems with permissions etc.
|
#9
|
|||
|
|||
.htaccess stuff won't be a problem with cron jobs because they're not related to Apache.
|
#10
|
||||
|
||||
i am also having problems with this. i have run the cron job and it has backed it up but again the file size reports 0..??
all directories to the backup folder i am using is CHMOD to 777..?? any ideas?? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|