Mediawiki upgrade: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.12#Back_up_existing_files_and_the_database | http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.12#Back_up_existing_files_and_the_database | ||
While the upgrade scripts are well-maintained and robust, things could still go pear-shaped. Before proceeding to update the database schema, '''make a full [[w:Manual:Backing up a wiki|backup]]''' of the wiki, including both the database and the files: | |||
* the wiki's content, from the database. It may be a good idea to create an XML dump in addition to the SQL database dump. | |||
** text dump: <tt>mysqldump --all-databases > file.txt</tt> | |||
** xml dump: <tt>mysqldump --all-databases --xml > file.xml</tt> | |||
* images and other media files (the contents of the <tt>images</tt> directory) | |||
* configuration files, i.e. <tt>LocalSettings.php</tt> and <tt>AdminSettings.php</tt> (if present) | |||
* MediaWiki's program files, including all skins and extensions, especially if you modified them. | |||
See [[w:Manual:Backing up a wiki]] for instructions. |
Revision as of 2008-05-17T15:27:34
http://www.mediawiki.org/wiki/Manual:Upgrading_to_1.12#Back_up_existing_files_and_the_database
While the upgrade scripts are well-maintained and robust, things could still go pear-shaped. Before proceeding to update the database schema, make a full backup of the wiki, including both the database and the files:
- the wiki's content, from the database. It may be a good idea to create an XML dump in addition to the SQL database dump.
- text dump: mysqldump --all-databases > file.txt
- xml dump: mysqldump --all-databases --xml > file.xml
- images and other media files (the contents of the images directory)
- configuration files, i.e. LocalSettings.php and AdminSettings.php (if present)
- MediaWiki's program files, including all skins and extensions, especially if you modified them.
See w:Manual:Backing up a wiki for instructions.