The archive directory consists of up to approximately 16 million (+) directories and the archives are stored evenly across them. This makes it hard (if not impossible) for the traditional file-based backup systems to back it up; thus, you either need a disk image (block level) backup or you need to use GWAVA’s The Retain Storage Path and How to Find It“.
What to Back Up
Other than backing up the archive directory structure, there are a few areas of Retain that are important to backup that would not require a disk image (block level) backup:
1. Configurations files
- Indexer configuration files
4. Index files (these can be rebuilt but that process can takes weeks or months during which time your searches will not produce full results)
ASConfig.cfg is stored in a directory off of your Retain installation:
Linux default: /opt/beginfinite/retain/RetainServer/WEB-INF/cfg
Windows default: [drive]:Program FilesBeginfiniteRetainRetainServerWEB-INFcfg
Indexer configuration files(the entire directory’s contents):
Linux default: /opt/beginfinite/retain/RetainServer/WEB-INF/solrweb/WEB-INF/cfg
Windows default: [drive]:Program FilesBeginfiniteRetainRetainServerWEB-INFsolrwebWEB-INFcfg
The location is too varied to mention here. Each customer should know where their Retain database resides. MySQL customers should reference these two KBs:
- “How to Find Your MySQL Data Directory Containing Your Retain Database“.
- “How to Back Up (Dump) MySQL Database“
The license directory is located under your storage path.
Because the Index directory can be in a constant state of change, it is recommended that you back up the index subdirectory located beneath the backup directory (also found under the storage path).
When the Retain maintenance routine runs, it makes a backup copy of the index directory and places it here. The frequency of this backup is configured in the RetainServer interface under Server Configuration | Maintenance.
If performing an upgrade of the Retain software you are strongly advised to manually back up all the files mentioned in this article before performing the upgrade.
Note on backing up during the nighly maintenance cycle
In Retain 4.0.3 the indexes are optimized during maintenance every night. This may take a few hours. During optimization the index directory may grow by 2-3 times as temporary files are created and removed. Backing up during this time is not recommended.