![]() |
|
Article Options |
Site and mySQL backups via cron
by
![]() Site Backup via Cron:
---------------------------------------- MySQL backup via cron - Emailed to You:
---------------------------------------- MySQL backup via cron - FTPed to You:
All these scripts should have the .php extension, and the file should have 755 permissions. Don't forget to change the first few variables to the beginning of the scripts to match your site details. Also note, that you will need to set-up a cron job via your cPanel, with a path to the script such as "php /home/username/path-to-the-php-script" (without the "" and replacing path-to-the-php-script with your actual path to it). That's it, enjoy! Regards Jason ![]() No members have liked this post.
Last edited by Jase2; 03 Feb 2008 at 20:02.. |
||||||||||||
Views: 8098
|
Comments |
#2
|
|||
|
|||
Thank you for this. I don't understand why no one ever posted a thank you. Well, anyways, this will help a lot.
No members have liked this post.
|
#4
|
|||
|
|||
How do you close your board during the backup?
No members have liked this post.
|
#6
|
||||
|
||||
Excellent, thank you!
No members have liked this post.
|
#7
|
|||
|
|||
Just to bump, THANKS! This is exactly what I was looking for.
Just a question -- how can I fix this?: will@rodan:/tth/cron$ php backup.php Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 474195519 bytes) in /tth/cron/backup.php on line 20 No members have liked this post.
|
#8
|
||||
|
||||
Originally Posted by sheppardzwc
Increase memory_limit in php.ini
![]()
No members have liked this post.
|
#9
|
||||
|
||||
thanks..this saves lot of time
![]() No members have liked this post.
|
#10
|
|||
|
|||
Thanks for the code.
Though, a mysql backup by email? I rather not receive 1GB of email attachments. :-) No members have liked this post.
|
#11
|
||||
|
||||
Doesn't work for me ... I think you must have SAFE MODE ON but I don't want to turn it off.
No members have liked this post.
|
#12
|
|||
|
|||
The tech support guy at my hosting gave me the following info to use Cron, via Cpanel, to do a backup of my database every Sunday night at midnight.
Rgds
__________________
My Wife married Mr Right, she simply failed to appreciate that my first name is always! No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 11:20.