Previous Topic: Query the Archive Catalog

Next Topic: Restore–Script for Restoring Archived Databases

Restore Auto-Archived Files

If you copy archived files from external storage to the remote server configured for auto-archiving, you can restore them with the restore-ca-elm.sh script. This alternative is preferred over the manual use of LMArchive utility.

To restore auto-archived files

  1. Use your caelmadmin credentials to log on to the CA Enterprise Log Manager server with the event log store where you want to restore the databases.
  2. At the command prompt, switch users to root, that is:
    su - root
    
  3. Change directories to /opt/CA/SharedComponents/iTechnology with the following shortcut:
    cd $IGW_LOC
    
  4. At the command prompt, switch users to the caelmservice account.
    su - caelmservice
    
  5. Run the following command, where userid and pwd are the credentials of a CA Enterprise Log Manager user account with the Administrator role.
    restore-ca-elm.sh -euser userid -epasswd pwd -rhost hostname -ruser userid -rlocation path -files file1,file2,file3...
    

    Note: To allow a non-Administrator to run the restore-ca-elm shell script, create a custom role and custom policy. Then, users to whom you assign this custom role can specify their credentials for userid and pwd.

More information:

Restore–Script for Restoring Archived Databases

Example: Allow a Non-Administrator to Manage Archives

Automating Backup and Restore