LCM has a graphical interface to take backup of the
applications and Foundation services. We can also take backup using a command
line utility which again can be used to automate and schedule backups. The
following steps are needed to be followed in order to do automation of Shared
Services or Application backup. Here the steps are shown of automation of
backup of Foundation services. Same steps hold true for any Planning
Application as well. The steps are as follows:
1)
First you need to login to Shared Services to
create a migration definition xml.
2) Go to Application Groups-> Foundation-> Shared
Services and select all artifacts and click on Define Migration.
3) Click on NEXT.
4) Select Destination as File system and give a name like – ‘SharedServicebkup’.
5) Click on next.
6) Click on Save Migration Definition.
7) A pop up opens asking you to save the xml file on your local machine. Save it and a file will be saved with the name MigrationDefinition.xml. Then using WinSCP copy the xml file on the planning server in the directory - /Hyperion/Oracle/Middleware/user_projects/epmsystem1/bin.
8) Then log into the Planning server and go to the directory using the command :
cd /Hyperion/Oracle/Middleware/user_projects/epmsystem1/bin
Here the utility Utility.sh will be used to take Shared Services backup using the MigrationDefinition.xml file. The xml file contains the details of all the artifacts that are to be backed up.
9) First time we run the command ./Utility.sh MigrationDefinition.xml
and it asks for username and password of Shared Services.
10) Enter the credentials and let it run for the first time. After it runs for the first time the username and the password get saved into the xml file in an encrypted format, so from second time onwards it does not need any credentials.
11) Now a shell script or a batch file can be created with the corresponding commands and can be scheduled for a regular backup.
./Utility.sh MigrationDefinition.xml -> Shell Script (Linux Server)
Utility.bat Migratio0nDefinition.xml -> Batch Script(Windows Server)
12) The backup is formed in the same directory as the utility Utility.sh (i.e/Hyperion/Oracle/Middleware/user_projects/epmsystem1/bin) with the name (SharedServicesbackup) that was provided while creating the MigrationDefinition.xml.
Thanks!!