Backing up the database using loaddb BACKUP
This procedure describes how to manually back up the SDL LiveContent Reach database.
About this task
By default, the /db path is backed up. This backs up users, groups, publications, forms (definitions and instances), audit trails, and packages.
The loaddb...BACKUP command does not back up modified LiveContent*.xml and lc.properties files. It is only intended to back up the database and has no affect on files outside the database, including customizations controlled by files such as conf.xml, lc.properties, log4j.xml, and the LiveContent*.xml files in the LiveContent_home directory.
Once you have modified all LiveContent_home configuration files to achieve the desired configuration of your SDL LiveContent Reach application, you should save copies of all modified files into a directory outside of the LiveContent_InstallDir.
Procedure
- At a command prompt, in the directory where SDL LiveContent Reach is installed, type
where:loaddb.{bat,sh} -Dlc.file=filename -Dlc.host=FQDN -Dlc.port=port_number -Dlc.db=/db -Dlc.context=/LiveContent BACKUPOption Description -Dlc.file Destination path and file name for the saved backup file. It defaults to backup.zip -Dlc.host The host name of the SDL LiveContent Reach instance in which to connect. The default is
localhost. When using this parameter to load from one server to another, the lc_properties file on each server within the secure group must share the same lc_auth_seed.-Dlc.port Non-SSL port number to connect to. Defaults to 8080. The default is derived from the local configuration.-Dlc.db The specified starting point collection inside the database that you want to act on.
Example:
loaddb -Dlc.db=/db/LiveContent/config -Dlc.file=config_backup.zip BACKUPThe
config_backup.zipfile will be a back up of the/db/LiveContent/configcollection (and all of its sub collections, if any exist).If you do not specify
-Dlc.db, it defaults to/db, which is the whole database.-Dlc.context SDL LiveContent Reach context. The default is derived from local configuration, usually /LiveContent - In a secure location, take note of the SDL LiveContent Reach Admin password. It is required to restore the backup and restore.