Radica Systems Limited RI Backup/Restore Guide Page: 1
Copyright 2004 Radica Systems Limited. All rights reserved. Published by Radica Systems Limited. DISCLAIMERS THIS PUBLICATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURAICES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN, THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE PUBLICATION. RADICA SYSTEMS LIMITED MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR PROGRAM(S) DESCRIBED IN THIS PUBLICATION AT ANY TIME. 2004 Radica Systems Limited All rights reserved. This product or document is protected by copyright and distributed under licenses or subscription base restricting its use, copying, distribution and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Radica Systems Limited and its licensors, if any. The product described in this manual may be protected by one or more U.S. patents, foreign patents, or pending applications. Radica Systems Limited RI Backup/Restore Guide Page: 2
Version History: Person Date/Time Version Changes Frank Wong 2011-03-03 1.0 - N/A Radica Systems Limited RI Backup/Restore Guide Page: 3
Contents Backup Radica Intimate Application... 5 1. Locate installation directory of Radica Intimate... 5 1.1 On Linux... 5 1.2 On Windows... 5 2. Backup Intimate Application... 7 3. Restore Intimate Application... 9 4. Backup/Restore Intimate Database... 18 4.1 Oracle... 18 4.2 Microsoft SQL Server... 20 Radica Systems Limited RI Backup/Restore Guide Page: 4
Backup Radica Intimate Application 1. Locate installation directory of Radica Intimate 1.1 On Linux You can use the command below: [root@internaldemo ~]# find / -name intimate.ini /usr/local/intimate/server/webapps/intimate/web-inf/intimate.ini In this example, the intimate installation directory is /usr/local/intimate/server/webapps/intimate/ Note: The default installation path is /usr/local/intimate/server/webapps/intimate/ on linux. 1.2 On Windows Use the Windows search function to search the file "intimate.ini" Radica Systems Limited RI Backup/Restore Guide Page: 5
In this example, the "intimate.ini" is located at C:/Program Files/Intimate/server/webapps/intimate/WEB-INF/intimate.ini Therefore the intimate installation directory is C:/Program Files/Intimate/server/webapps/intimate Note: The default installation path is C:/Program Files/Intimate/server/webapps/intimate on Windows. Radica Systems Limited RI Backup/Restore Guide Page: 6
2. Backup Intimate Application Locate your intimate installation directory as in (1), suppose your installation directory is: (Linux) /usr/local/intimate/server/webapps/intimate/ (Windows) C:\Program Files\Intimate\server\webapps\intimate Then, you should stop RI, (Linux) /etc/init.d/intimate stop Or /usr/local/intimate/server/bin/intimate.sh stop (Windows) 1. Go to Control Panel > Administrative Tools > Services. 2. Find the service Radica Intimate. 3. Stop it. Radica Systems Limited RI Backup/Restore Guide Page: 7
And backup the following directory (Linux) /usr/local/intimate You should use the command below [root@linux ~] tar zcvf intimate-yyyy-mm-dd.tgz /usr/local/intimate Note: YYYY refers to the current year, MM refers to the current month and DD refers to the current date. It is for reference only. (Windows) C:\Program Files\Intimate Radica Systems Limited RI Backup/Restore Guide Page: 8
3. Restore Intimate Application Case 1- Restore on server with Intimate In case if you are trying to restore Intimate on the computer that has Intimate installed, please follow (2) to backup Intimate first. After backup, you may need to remove the existing Intimate: Locate your intimate installation directory as in (1), suppose your installation directory is: (Linux) /usr/local/intimate/server/webapps/intimate/ (Windows) C:\Program Files\Intimate\server\webapps\intimate Then, you should stop RI, (Linux) /etc/init.d/intimate stop Or /usr/local/intimate/server/bin/intimate.sh stop (Windows) 4. Go to Control Panel > Administrative Tools > Services. 5. Find the service Radica Intimate. 6. Stop it. Radica Systems Limited RI Backup/Restore Guide Page: 9
And backup the following directory (Linux) /usr/local/intimate You should use the command below [root@linux ~] tar zcvf intimate-yyyy-mm-dd.tgz /usr/local/intimate Note: YYYY refers to the current year, MM refers to the current month and DD refers to the current date. It is for reference only. (Windows) C:\Program Files\Intimate Radica Systems Limited RI Backup/Restore Guide Page: 10
7. Delete the existing Intimate On Linux: [root@linux ~] rm rf /usr/local/intimate On Windows: Please use the uninstaller to uninstall RI: Radica Systems Limited RI Backup/Restore Guide Page: 11
Or there is an executable uninstall.exe located at C:\Program Files\Intimate Important Notes We don t suggest deleting the files without using uninstaller, but in case if so, you need to remove the Windows Service: C:\Users\Radica> sc delete Radica Intimate After you uninstall the existing Intimate, please proceed as case (2) Radica Systems Limited RI Backup/Restore Guide Page: 12
Case 2- Restore on server without Intimate Method 1 For Normal User 1. Install a new RI instance on exactly the same directory. 2. After Installation, decompress the backup, the location should be the same as the previous installation directory. For example: Linux: /usr/local/intimate Windows: C:/Program Files/Intimate On Linux - Assume the backup file is intimate.tgz [root@linux ~] tar zxvf intimate.tgz On Windows: - Unzip the backup 3. Extract the file back to the original installation directory: Radica Systems Limited RI Backup/Restore Guide Page: 13
4. Start Intimate. Method 2 For Administrator 1. Decompress the backup, the location should be the same as the previous installation directory. For example: Linux: /usr/local/intimate Windows: C:/Program Files/Intimate On Linux - Assume the backup file is intimate.tgz [root@linux ~] tar zxvf intimate.tgz On Windows: - Unzip the backup Radica Systems Limited RI Backup/Restore Guide Page: 14
2. Extract the file back to the original installation directory: Radica Systems Limited RI Backup/Restore Guide Page: 15
3. Create a Intimate Service C:\Windows\system32>sc create "Radica Intimate" binpath= "c:\program Files\Intim ate\serer\bin\wrapper.exe -s c:\program Files\Intimate\server\conf\wrapper_win.conf\" Check if there is a service created: Radica Systems Limited RI Backup/Restore Guide Page: 16
Try to start RI and change the startup type as Auto. Note: In case if you see any error, you may need to check the event log of Microsoft Windows Radica Systems Limited RI Backup/Restore Guide Page: 17
4. Backup/Restore Intimate Database 4.1 Oracle 1. Login the database server as user oracle 2. Set the path for Oracle Home and Oracle SID by: Method A Type the command below to configure the Oracle Home and SID: $> export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 $> export ORACLE_SID = ORACLE To verify, type the command below: $> echo $ORACLE_HOME /u01/app/oracle/product/10.2.0/db_1 $> echo $ORACLE_SID Oracle Method B Type the command below to auto configure by Oracle itself: shell>. oraenv Your screen will display as below: ORACLE_SID = [oracle]? Enter your Oracle SID and Oracle will set everything for you. To backup: shell> expdp <dbuser>/<dbpassword> DIRECTORY=expdp_dir DUMPFILE=intimate- <date>.dmp LOGFILE=intimate-<date>.log Radica Systems Limited RI Backup/Restore Guide Page: 18
To restore: shell> impdp <dbuser>/<dbpassword> DIRECTORY=expdp_dir DUMPFILE=intimate-<date>.dmp LOGFILE=intimate-<date>.log Import: (Please make sure that the username/ tablespace is created and same as the export one. 1. If you wish to use a different username, you need to add REMAP_SCHEMA=<Old_Database_User>:<New_Database_User> 2. If you wish to use a different tablespace, you need to add REMAP_TABLESPACE=<Old_Tablespace>:<New_Tablespace> Reference: http://wiki.oracle.com/page/data+pump+export+%28expdp%29+and+data+pump+import%28i mpdp%29 Radica Systems Limited RI Backup/Restore Guide Page: 19
4.2 Microsoft SQL Server Backup 1. Connect to your Microsoft SQL Database by using Microsoft SQL Management Studio Radica Systems Limited RI Backup/Restore Guide Page: 20
2. After login, right click to the related database. From the sub menu, choose Task and select Backup Radica Systems Limited RI Backup/Restore Guide Page: 21
3. A dialog box will be prompted. a. Choose the backup type as Full b. Change the backup destination by pressing Add. In the example below, the backup location is D:\sqlbackup\DBDailyBackup Press Enter to backup. Radica Systems Limited RI Backup/Restore Guide Page: 22
Restore 1. Connect to your Microsoft SQL Database by using Microsoft SQL Management Studio Radica Systems Limited RI Backup/Restore Guide Page: 23
2. After login, right click to the related database. From the sub menu, choose Task and select Restore, and choose Database Radica Systems Limited RI Backup/Restore Guide Page: 24
3. A dialog box will appear. Confirm the target database is correctly selected. Radica Systems Limited RI Backup/Restore Guide Page: 25
Select From device and another dialog box will appear. Choose Add to add your most recent backup. Radica Systems Limited RI Backup/Restore Guide Page: 26
4. You suppose to see the backup. Press OK to restore the database. Reference: http://msdn.microsoft.com/en-us/library/ms187510.aspx Radica Systems Limited RI Backup/Restore Guide Page: 27
4.3 MySQL Backup 1. Assuming a. The target database is ridb b. The database username is riuser c. The database user password is password shell> mysqldump uriuser -p --databases ridb > backup_ridb_2012_12_01.sql Restore 1. Assuming a. The target database is ridb b. The database username is riuser c. The database user password is password shell> mysqldump uriuser -p --databases ridb < backup_ridb_2012_12_01.sql Reference: http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html Radica Systems Limited RI Backup/Restore Guide Page: 28