ez.no / ezpublish / documentation / configuration / backup & restore / overview
These documentation pages are no longer maintained. Please visit the new documentation site.
Just an overview....
For a backup of an ez3 (or ez2) system, you can use the backup-script " reoback".
Reverse the backup process :
General Notes:
PS: Can any MySQL guru please comment, if mysqldump really is the best choice for doing a consistant dump (=is the DB locked)? Regarding mysqldump: If you use the -l or --lock-tables option when using mysqldump, it will lock all tables in a database (not across all databases, just one at a time). There's also the --add-locks option which will lock each table separately but it does not guarantee consistency across a database.
<li>if necessary, restore your apache config (httpd.conf) and restart your webserver</li></ol>General Notes:<ul> <li>For consistance's sake, try to backup the files at the same time or directly after the database. </li> <li>Reoback can be used to copy or move your backup files to some other server using FTP or NFS. I would recommend this. If you don't have some other server/webspace, that you can FTP to, you need to download the backup files to some client (probably manually, except your client is running all the time). Beware of huge files!</li> <li>Reoback can be used to do incremental backups. </li> <li>This process can be used to port/copy/clone any ez site. Just restore to some other place/server and adapt your .ini's. </li> <li>Of course, you should automate the process by using the server's cron system and some small Perl scripts.</li></ul>PS: Can any MySQL guru please comment, if mysqldump really is the best choice for doing a consistant dump (=is the DB locked)?<strong>Regarding mysqldump</strong>: If you use the -l or --lock-tables option when using mysqldump, it will lock all tables in a database (not across all databases, just one at a time). There's also the --add-locks option which will lock each table separately but it does not guarantee consistency across a database.</paragraph></sec
if necessary, restore your apache config (httpd.conf) and restart your webserver
General Notes:
PS: Can any MySQL guru please comment, if mysqldump really is the best choice for doing a consistant dump (=is the DB locked)?
Regarding mysqldump: If you use the -l or --lock-tables option when using mysqldump, it will lock all tables in a database (not across all databases, just one at a time). There's also the --add-locks option which will lock each table separately but it does not guarantee consistency across a database.
Comments
Postgresql dump
Zoltan Szabo
Monday 28 July 2003 7:20:33 am
then
psql ezdb -Uezusr < this_is_the_dumpfile
There is a -d or -D option of the pg_dump - depending on it you can use inserts or inserts-columns instead of the "copy". Or you can change --format=format, if you want e.g. a tar archive format.
Mysqldump
Björn Dieding@xrow.de
Tuesday 15 July 2003 2:51:18 pm
I would prefer mysqlhotcopy or some similar technique that works with binary dumps.
Also one idea would be using database replication. That what you can lock your replicated DB, dump it and unlock it again. With out any effect on the master DB.
Prove me wrong ;-)... I am just throwing ideas around.