Async HQbird replication
When master and replica are on different machines, archived replication segments must move from master to replica. Two usual paths: HQbird’s built-in FTP (WAN, high latency, different regions) or a network share (fast LAN, 1 Gbit recommended). How to turn replication on: replication setup.
Transfer via embedded HQbird FTP
Best when the link is unstable, high-latency, or geographic. HQbird includes an FTP client and server - no extra tools. Enable Master → Asynchronous; HQbird creates two folders next to the database (${db.path}). Save, then restart the FirebirdHQbird service to start journaling.
Job: Transfer Replication Segments
Watches the archive folder and uploads new segments to a remote FTP (up to five destinations). Types: FTP, FTP over SSL/TLS, FTP over SSH. Enable the embedded FTP server on the replica.
- Check period, seconds - how often to look for new files
- Monitor this folder - default
${db.repparam_log_archive_directory}(LogArch) - Filename template - same macro for the archive name mask
- Age of oldest file to alert (minutes) - default 60; warns if transfer is stuck
- Compress segments - on by default: compress + encrypt before upload
- Failed connection attempts to disable FTP - default 0 = never give up
- How many old (sent) files to keep - default 10, then rotate
- Send Ok report - email on each upload (off by default)
- Name prefix to rename uploaded reinit files - leave for automatic reinit
File Receiver on the replica
Configure Replica → Asynchronous (defaults are filled). Save; restart Firebird (or drop all connections). Then open File Receiver: it watches Monitor directory every Check period, minutes for mask *arch* and extension .replpacked (defaults), decrypts with Decrypt password, and unpacks to Unpack to directory.
- Remove packed files after unpacking - on by default
- Send Ok report - off by default
- Perform fresh unpack - off; turn on after re-init to start from segment 1 (it turns itself off after resetting the counter)