MyBB Community Forums

Full Version: Backups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

When I go to enable the task for database backups, it gives my the warning it's meant to be run by a cron. Does this mean anything, do I have to do it in cPanel rather than MyBB ACP?
You don't have to, but cron is more reliable and more secure.
I think that's there as the backup task may take a while to run, which will slow the board down, whereas that wouldn't happen if it was run as a cron. I think Toungue
What file would I link the cron to?
(2011-06-02, 09:17 PM)Austin01 Wrote: [ -> ]What file would I link the cron to?

task.php in your MyBB root folder.

Whats the command? public_html/task.php ?
In the cron you need to set the absolute path, I think.
For instance /home/youruser/public_html/task.php

If you want to know the absolute path to your task.php file. Create a new file in your mybb root and paste in this content:
<?php
echo realpath(".");
?>
Save that file as "abspath.php". Now go http://yourdomain.com/abspath.php .
Add "/task.php" to the path you get and that's your absolute path.

[EDIT]
And what Malcolm says Toungue
php /home/username/public_html/inc/tasks/backupdb.php

That should work.
Thanks guys Smile
No problem, here to help. Smile
Pages: 1 2