XamFlow Server Backup Guide¶
Warning
Backups are critical and require expert handling. Please carefully read this document and consult with your system administrator or IT department.
This backup guide describes the process to backup XamFlow Server.
It is important that the administrator of XamFlow Server periodically creates backups of all important data.
General recommendations¶
Keep multiple daily / weekly / monthly backups
Store backups on-site and off-site on different storage mediums
Automate backups
Test restoring from backups periodically
Database Backup¶
XamFlow Server uses a PostgreSQL database.
Study the PostgreSQL Documentation about pg_dump
Ensure the database service is running.
Create a folder.
Open a console in that folder and run for example the following commands:
set PG_BIN="C:\XamFlow\PostgreSQL\15\bin"
%PG_BIN%\pg_dump.exe --dbname=xamflow --file="database.dump" --format=custom --username=postgres --verbose >pg_dump_stdout.log 2>pg_dump_stderr.log
type pg_dump_stdout.log
type pg_dump_stderr.log
Type the password (default:
postgres
) when prompted.Check the
pg_dump_stdout.log
andpg_dump_stderr.log
files for any error message.This creates a consistent backup of the database.
File Storage Backup¶
Copy the files from the File Storage mappings.
Consult the WebAdmin panel for File Storage mappings in case the location was adjusted.
Other Files¶
Copy other files like config, license or log files from
%localappdata%\Lucid_Concepts_AG
.
Other Computers¶
Create backups of files on other computers, e.g. worker computers, desktop computers, file storage computers.
Restore Database from Backup¶
Warning
Restoring the database is a critical operation. A clean database is required as a starting point. Dropped database objects not present in the backup cannot be restored.
Consider adjusting flags like –create below according to the specific scenario.
Ensure the database service is running.
Stop all worker services.
Open a console and run for example the following commands:
set PG_BIN="C:\XamFlow\PostgreSQL\15\bin"
%PG_BIN%\pg_restore.exe --create --dbname=postgres --username=postgres --verbose --exit-on-error database.dump >pg_restore_stdout.log 2>pg_restore_stderr.log
type pg_restore_stdout.log
type pg_restore_stderr.log
Type the password (default:
postgres
) when prompted.Check the
pg_restore_stdout.log
andpg_restore_stderr.log
files for any error message.
Restore Files¶
Warning
Restoring the files is a critical operation. The files should be consistent with the database.
Restore the files at the same time as the database backup, so they are consistent.