Re: On-Line backup method [message #163743 is a reply to message #163739] |
Mon, 29 November 2010 12:43 |
Ernesto
Messages: 413 Registered: August 2005
Karma:
|
Senior Member |
|
|
There are third party software that handles this, although it would be nice to have it, I think setting up a proper backup system is the better choice than to make it builtinto the forum software, since very often (if not always) it requires chron jobs or schedueled tasks on the serverside.
You can always make a forum backup from the admin panel that you can later import but it is not ideal if you have many file attachments or large attachments, for example.
What you want is a SH script that checks the files, copies over newer files into a new dir and leave another folder with redundant info behind - IE keeps a shadow of each week, and then sorts all the new stuff into a "latest backup" where all the files are up to date daily.
What you really want is the database, the messagefiles and the attachments, so every day you do an SQL dump with a chronjob, (not accessible from the web, of course) and then you check for all files that have changed in the DATA_DIR and copy it over into your latest_update folder. Once a week, you copy the entire DATA_ROOT and WWW_ROOT into a folder with a dataname, for example weekly_backup_2010-11-28 in case the daily update gets messed up or you wanna do a rollback.
Then on a rolling backup, monthly, you delete the old backups, and keep the thing rolling.
There should be either installable scripts/software that does this automatically, or you can write your own shellscript.
That's at least how I'd do it if you dont have RAID mirrors, etc.
Ginnunga Gaming
|
|
|