Backing up Garoon Using OS Commands

This section describes how to use OS commands to back up data.
During backup, users cannot access Garoon. You have to back up data when users do not have access to Garoon.

For Windows

On Windows, use OS commands to back up data.
This example illustrates the use of MySQL bundled in the installer.

  • Installation identifier: cbgrn
  • Directory to be backed up:
    • C:\Program Files\Cybozu\mysql-5.0\data
    • C:\Program Files\Cybozu\mysql-5.0\files
  • Backup destination: C:\backup\YYYYMMDD
Steps:
  1. Stop the Web server service.

  2. Stop the scheduling service first, and then the MySQL service.

    From the Windows Start menu, select "Administrative Tools" > "Services" to stop the following services:

    • Cybozu_Scheduling_Service_cbgrn
    • Cybozu_Database_Engine_5_0

  3. Confirm that the Garoon service is stopped.

    1. Start Task Manager.
    2. On Windows Task Manager, click the "Processes" tab.
    3. Check that "sched.exe" and "mysqld.exe" are not displayed.

  4. Start the command prompt.

  5. Create a destination directory under the current directory.

    mkdir C:\backup\YYYYMMDD

  6. Copy the "data" directory and the "files" directory to the destination directory that you created in step 5.

    xcopy "C:\Program Files\Cybozu\mysql-5.0\data"
    C:\backup\YYYYMMDD\data /e /i
    xcopy "C:\Program Files\Cybozu\mysql-5.0\files"
    C:\backup\YYYYMMDD\files /e /i

    If you have copied the data to an existing directory, a message appears asking if you want to overwrite it.
    Type "Yes" or "All" to overwrite. Type "No" to cancel.

  7. Start the MySQL service first, and then the scheduling service.

    From the Windows Start menu, select Administrative Tools > service, and start the following services.

    • Cybozu_Database_Engine_5_0
    • Cybozu_Scheduling_Service_cbgrn

  8. Start the Web server service.

  9. Ensure that Garoon can be accessed correctly.

For Linux

On Linux, use OS commands to back up data.
This example illustrates the use of MySQL bundled in the installer.

  • Installation identifier: cbgrn
  • Directory to be backed up:
    • /usr/local/cybozu/mysql-5.0/data
    • /usr/local/cybozu/mysql-5.0/files
  • Backup destination: /backup/YYYYMMDD
Steps:
  1. Stop the Web server service.

    • For Red Hat Enterprise Linux 6 or earlier:
    /etc/init.d/httpd stop
    • For Red Hat Enterprise Linux 7 or later:
    systemctl stop httpd.service

  2. Stop the scheduling service first, and then the MySQL service.

    /etc/init.d/cyss_cbgrn stop
    /etc/init.d/cyde_5_0 stop

  3. Confirm that the Garoon service is stopped.

    Run the following command to confirm that the scheduling service and the MySQL service are not displayed.

    ps -aux | grep cyss
    ps -aux | grep mysqld

  4. Create a destination directory.

    mkdir -p /backup/YYYYMMDD

  5. Copy the "data" directory and the "files" directory to the destination directory you created in step 4.

    cp -rp /usr/local/cybozu/mysql-5.0/data /backup/YYYYMMDD/
    cp -rp /usr/local/cybozu/mysql-5.0/files /backup/YYYYMMDD/

  6. Start the MySQL service first, and then the scheduling service.

    /etc/init.d/cyde_5_0 start
    /etc/init.d/cyss_cbgrn start

  7. Start the Web server service.

    • For Red Hat Enterprise Linux 6 or earlier:
    /etc/init.d/httpd start
    • For Red Hat Enterprise Linux 7 or later:
    systemctl start httpd.service

  8. Ensure that Garoon can be accessed correctly.