Scheduled backups [message #5623] |
Tue, 10 September 2002 19:17 |
smeghead
Messages: 9 Registered: September 2002
Karma: 0
|
Junior Member |
|
|
Is there a way to automate the data dump process. I would like to use Cron to do a nightly backup of my forum. I was thinking of using wget to request the URL that corresponds to doing a data dump, but I'm not sure how to handle authentication.
Has anybody done this? If so, could you give some pointers please?
|
|
|
Re: Scheduled backups [message #5627 is a reply to message #5623] |
Tue, 10 September 2002 19:59 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
wget will work, but you would need to pass some parameters via GET such as the archive name and a session id of an admin account, since that form will not work for any user who is not an admin.
FUDforum Core Developer
|
|
|
|
|
|
Re: Scheduled backups [message #5651 is a reply to message #5649] |
Wed, 11 September 2002 18:07 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
That is not a good approach, since it requires the theme to be rebuilt for this to 'go live' Why not just copy the file directly to theme/default/images/ inside WWW_ROOT dir? That way you avoid the rebuild theme step.
FUDforum Core Developer
|
|
|
|
|
|
Re: Scheduled backups [message #5723 is a reply to message #5623] |
Sun, 15 September 2002 23:07 |
|
I plan to look at ripping the backup portion out of the .php file and creating a script using the command line php executable to enable running backups from cron. If I come up with something I'll post back here.
|
|
|
Re: Scheduled backups [message #5724 is a reply to message #5723] |
Sun, 15 September 2002 23:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I already wrote an example in the manual an example that would workeable once 2.3.2 comes out. It is made possible by the fact that backup script now accepts HTTP Auth.
FUDforum Core Developer
|
|
|