This topic provides general guidelines for backing up your data. You must be a site administrator to complete this process.
You should regularly back up the following data in LabKey Server:
If you are using our recommended installation folder structure, you'll have these two locations, referred to generally by variable names and using forward slashes in our documentation. <LABKEY_HOME> is the same as <LK_ROOT>/labkey.Variable | Linux default | Windows default |
---|---|---|
<LK_ROOT> | /labkey | C:\labkey |
<LABKEY_HOME> | /labkey/labkey | C:\labkey\labkey |
A <LK_ROOT>/backupArchive subdirectory is a good place to store backups locally. Create it if it does not already exist. Depending on your platform:
/labkey/backupArchive
or
C:\labkey\backupArchive
That directory may be overwritten automatically at every upgrade with the immediate prior backup. Instead, create and use a <LK_ROOT>/backupArchive directory for your own backups. Create it if it does not exist.
Backup procedures will vary based on the type, version, and location of your database.
PostgreSQL provides commands for three different levels of database backup: SQL dump, file system level backup, and on-line backup. Find backup details in the PostgreSQL documentation for your version, available here:
Contact your database administration team if you need additional detail.Site-level File Root. You should backup the contents (files and sub-directories) of the site-level file root. The location of the site-level file root is set at: > Site > Admin Console > Configuration > Files.
Other File Locations. To see a summary list of file locations: go to > Site > Admin Console > Configuration > Files, and then click Expand All. Note the Default column: if a file location has the value false, then you should backup the contents of that location manually. With clear zip file naming, backups can all go into the same location.
Log Files. Log files are located in <LABKEY_HOME>/logs.
Configuration Files. Configuration files, including application.properties, are located in <LABKEY_HOME>/configs.
previousnext |
expand allcollapse all |