Back to DeveloperDocs

How to Duplicate a Docmint manual

For this example, suppose we are copying manual version 2.3 and creating version 2.4.

Backup the old manual, and create a database for the new manual.

# mysqladmin -uXXX docmint_campsite_2_3 > docmint_campsite_2_3_backup.sql
# mysqladmin -uXXX create docmint_campsite_2_4
# mysql -uXXX docmint_campsite_2_4 < docmint_campsite_2_3_backup.sql

Add rights for docmint user:

# mysql 
Welcome to the MySQL monitor.  Commands end with ; or g.
Your MySQL connection id is 64645 to server version: 4.0.23_Debian-3ubuntu2.1-log
Type 'help;' or 'h' for help. Type 'c' to clear the buffer.
mysql> GRANT ALL PRIVILEGES ON docmint_campsite_2_4.* TO docmint@localhost;
Query OK, 0 rows affected (0.11 sec)

Copy the directory structure:

# cd /var/www/manuals/campsite/
# cp -R 2.3 2.4
# chown -R www-data:www-data 2.4

Fix the configuration:

# vi 2.4/configuration.php
# vi 2.4/configure_db.php
# vi 2.4/lang.en-us.xml