Migrate

To migrate Group-Office to another server you need to backup all data files and the database.

Note

The filesystem paths shown here might be different in your environment.

Backup

Determine where the data files are stored (You can also just open config.php and lookup the value instead of using ‘cat’ and ‘grep’ on linux):

cat /etc/groupoffice/config.php | grep file_storage_path

This outputs:

$config['file_storage_path']='/var/lib/groupoffice/';

Now create an archive of this path:

tar czf groupoffice-files.tar.gz /var/lib/groupoffice

This command outputs the database parameters (You can also just open config.php and lookup the values instead of using ‘cat’ and ‘grep’ on linux):

cat config.php | grep db

This outputs:

$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 groupoffice -u groupoffice -p > groupoffice-20190101.sql

You might want to compress this file to save bandwidth:

tar czf groupoffice-database.tar.gz groupoffice-20190101.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

  1. Install a clean Installation following this manual
  2. Replace the file folder with the groupoffice-file.tar.gz contents.
  3. Replace the database with the mysqldump created in the backup.
  4. Run /install/ to finish.