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
-
Stop the Web server service.
-
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
-
Confirm that the Garoon service is stopped.
- Start Task Manager.
- On Windows Task Manager, click the "Processes" tab.
- Check that "sched.exe" and "mysqld.exe" are not displayed.
-
Start the command prompt.
-
Create a destination directory under the current directory.
mkdir C:\backup\YYYYMMDD
-
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. -
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
-
Start the Web server service.
-
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
-
Stop the Web server service.
systemctl stop httpd.service
-
Stop the scheduling service first, and then the MySQL service.
systemctl stop cyss_cbgrn.service systemctl stop cyde_5_0.service
-
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
-
Create a destination directory.
mkdir -p /backup/YYYYMMDD
-
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/
-
Start the MySQL service first, and then the scheduling service.
systemctl start cyde_5_0.service systemctl start cyss_cbgrn.service
-
Start the Web server service.
systemctl start httpd.service
-
Ensure that Garoon can be accessed correctly.