PDA

View Full Version : Auto Backup Script...


Chris M
08-27-2002, 07:22 PM
Please can anyone help?

It takes forever to download the vBulletin.sql files from my board, over a 56k modem!

Does someone know of an auto-script, that can backup the board every day, to a directory on the server?

Saving it as a date would be good...

Currently I save all my files as :

DayMonthYear

Todays would be :

270802

Anyone know how?

Satan

DrkFusion
08-27-2002, 08:38 PM
Umm maybe.. you can iframe a little php code that would do a mysql dump and put it on maybe a local host,...and in the page header, tell it to refresh after _______ secondes or something.

The easiest I got :)

NTLDR
08-27-2002, 08:54 PM
You can run the backup and have it create a dated file on the server allready ;) (the save file button), this isn't automatic but its a step in the right direction.

Chris M
08-28-2002, 08:36 PM
Hmmm yeh...

Now all I need is a script that will make it do it once a week or whatever...

Satan

DrkFusion
08-29-2002, 12:13 AM
I would make php script where it connects to mysql database, and does a dumb every few days, doing it once a week would be good, then set up a server on your comp, something little, and set a virtual directory, where you want it to go like ipaddress/backups, this may be located on your desktop, and in the script, the php code will do the dump, and copy it to that directory.

This would be done, and iframed into an html page with a meta refresh, this is the easiest way I can think of.

Also you tell the meta refresh to refresh the script after xxxxxxxx secondes (# of seconds in a week)

Drk

NTLDR
08-29-2002, 11:51 AM
Originally posted by DrkFusion
Also you tell the meta refresh to refresh the script after xxxxxxxx secondes (# of seconds in a week)k

It would be far far better to get a cron job to run the script every x mins, that way you don't have to keep your broswer open on that page doing nothing ;)

Chris M
08-29-2002, 01:01 PM
Hmmm...

Perhaps Chen would be the best to help decide this issue...I'll see what he says when he comes back...

The only thing about Cron Jobs is that I am not sure I can run them on the server I am on...

Satan