This manual is deprecated. Please visit https://groupoffice.readthedocs.io for the latest documentation. |
Difference between revisions of "Moving or backup an installation"
(→Installing the old files on the new server) |
|||
Line 1: | Line 1: | ||
− | To move Group-Office to another | + | To move Group-Office to another server you need to backup all data files and the database. |
− | Note: All the directories here are examples. They are probably different in your case. | + | Note: All the directories here are examples. They are probably different in your case. |
− | + | ||
− | + | Determine where the data files are stored: | |
− | + | ||
− | + | ||
− | + | ||
<pre>$ cat config.php | grep file_storage_path | <pre>$ cat config.php | grep file_storage_path | ||
Line 29: | Line 25: | ||
<pre>$ mysqldump --default-character-set=utf8 groupoffice -u groupoffice -p > groupoffice-20070813.sql</pre> | <pre>$ mysqldump --default-character-set=utf8 groupoffice -u groupoffice -p > groupoffice-20070813.sql</pre> | ||
− | You might want to | + | You might want to compress this file to save bandwidth: |
<pre>$ tar czf groupoffice-database.tar.gz groupoffice-20070813.sql</pre> | <pre>$ tar czf groupoffice-database.tar.gz groupoffice-20070813.sql</pre> | ||
− | Now we packed up all | + | Now we've packed up all necessary files in archives: |
− | |||
# groupoffice-files.tar.gz | # groupoffice-files.tar.gz | ||
# groupoffice-database.tar.gz | # groupoffice-database.tar.gz | ||
− | + | ==Installing the backup on the new server== | |
− | + | ||
− | + | ||
− | + | ||
− | ==Installing the | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | First [[Installation Manual|install the Debian packages or follow the manual installation]] for Group-Office. | |
− | + | ||
− | + | ||
− | + | ||
+ | Then replace the Group-Office files and database with your backups. It's probably useful to install PhpMyAdmin so you can empty the default "groupoffice-com" database on Debian easily. | ||
Now you need to run http://some_url_to_groupoffice.com/install/ and follow instructions to complete the install. | Now you need to run http://some_url_to_groupoffice.com/install/ and follow instructions to complete the install. | ||
Good luck! | Good luck! |
Revision as of 11:32, 10 April 2013
To move Group-Office to another server you need to backup all data files and the database.
Note: All the directories here are examples. They are probably different in your case.
Determine where the data files are stored:
$ cat config.php | grep file_storage_path $config['file_storage_path']='/home/groupoffice/';
Now create archives of these paths (It might be that the local path is inside the Group-Office scripts directory. In that case you can skip the creation of the local archive):
$ tar czf groupoffice-files.tar.gz /home/groupoffice
This command outputs the database parameters:
$ cat config.php | grep db $config['db_type']='mysql'; $config['db_host']='localhost'; $config['db_name']='groupoffice'; $config['db_user']='groupoffice'; $config['db_pass']='password';
Now create a dump of the database:
$ mysqldump --default-character-set=utf8 groupoffice -u groupoffice -p > groupoffice-20070813.sql
You might want to compress this file to save bandwidth:
$ tar czf groupoffice-database.tar.gz groupoffice-20070813.sql
Now we've packed up all necessary files in archives:
- groupoffice-files.tar.gz
- groupoffice-database.tar.gz
Installing the backup on the new server
First install the Debian packages or follow the manual installation for Group-Office.
Then replace the Group-Office files and database with your backups. It's probably useful to install PhpMyAdmin so you can empty the default "groupoffice-com" database on Debian easily.
Now you need to run http://some_url_to_groupoffice.com/install/ and follow instructions to complete the install.
Good luck!