Coppermine Backup
This script is designed to provide a one-click backup solution
for your Coppermine Photo Gallery. It is aimed primarily at users
who have a small photo gallery, on the assumption that any owner
of a large gallery will probably have a general backup strategy
for their web server and database anyway.
I have tested this script on Mac OS X running Apache/PHP/Mysql
and Windows XP running Apache/PHP/MySQL.
NB: This script will drop your local Coppermine tables and
restore from the remote backup.
The following are assumed:
1) You have a working Coppermine install on your local system.
2) You have the MySQL client installed on your local system
(part of the standard MySQL install) and know where that resides
on your system.
3) You have remote access to your live MySQL database i.e. it can
be accessed via an IP address rather than just as localhost on
your live web server.
4) You have FTP access to your web site.
Installation:
backup.php should be installed in the main Coppermine directory of
your local system only.
backup.inc.php should be installed in the include directory of
your local Coppermine system only.
You need to go in to backup.inc.php and edit the variables as
instructed in the comments.
Running:
Simply call
http://yourlocalsite/backup.phpWhen the script has run, it will display a log of the actions
completed.
I just posted a new version, which handles sub-directories other than userpics correctly. Also fixed a hard coding bug see posting below