Log in

View Full Version : Website Backup/Restore script required



Beverleyh
04-08-2009, 02:01 PM
Hi,

I'm looking for a website backup/restore script that does the following/has the following features:

1 - All php/html web pages (not doc/images) in a root directory and/or selected sub-directories can be backed-up via an online GUI, accessible to 5 admins.
2 - The web pages can be backed-up/restored by 5 admins so should be password protected.
3 - The backup is done as-and-when/manually at the click of a button - no cron job required.
4 - Individual and multiple web pages can be selected and restored from the backup archive via an online GUI by 5 admins.
5 - I do not need a web page edit option just a backup-whole-webpage/restore-whole-webpage function.

The situation that has brought this about is this:
One of 5 website admins made a small change to a web page but accidentally messed the whole page up.
They didnt have a copy of the original code or a previously saved page version to revert back to and had to email me for the master file.
There was a time delay of several hours before a working web page went back online.

So basically, I would like some sort of backup archive in place which can be created/updated for the whole site on an as-and-when basis once page updates have been made, but if a mistake is made, an admin can restore one or multiple web pages from the backup archive instantly so the site/page doesnt go down.

Does anyone know of a suitable script than would suit these purposes?

Thanks

Beverley

Beverleyh
04-21-2009, 08:18 AM
I have mashed together something that does the job to 90% of what I want - the following scripts may be useful to others:

Website backup script here: http://www.absoft-my.com/pondok/sitebackup.php
(my final working version of the script has been edited to include only certain sub directories and just files in the root)

Password protection here: http://www.zubrag.com/scripts/password-protect.php

Medyman
04-22-2009, 12:21 AM
Looks like you need to use SVN or another version control system. 5 people working on the same site at potentially the same time can dangerous.

trochia
04-25-2009, 11:30 AM
I totally agree. I have battled this many times.

You'd better at least get everyone writing to a change log, or what I do when I "have" to deal with this...is set up SMF (simple machines forum), and make danged sure each topic(change) is described.

The ones that don't post changes, stick to the rules...well, they're not a very good admin :-)

Beverleyh
04-25-2009, 02:40 PM
Hi

I understand what youre saying but for my purposes, what I mashed together is fine.

The other admins can only edit 1 or 2 pages that have been specifically allocated to them alone - there is no overlap.

The only overlap occurs with me because I've got master access to everything but as I'm in the UK and everyone else is in the US, there is never a clash as we work on the pages at different hours of the day :)

Their updates are rather sporadic too, with updates only taking place every few weeks so its easy to follow whos doing what and when they're doing it.

Thanks

Beverley