29.04.2021 18:09,
eric.gu...@gmail.com wrote:
>
> Now I know how to use replication sync and async ;)
Good ;-)
> My final async replication setting :
>
> # (for asynchronous replication)
> #
> # (for the primary side)
> database = D:\base\devFB4\source.fdb
> {
> log_directory = D:\base\devFB4\replica\log_directory
> log_archive_directory = D:\base\devFB4\replica\log_archive_directory
> log_archive_command = "copy $(logpathname)
> D:\base\devFB4\replica\log_source_directory\$(logfilename)"
I'd better setup:
log_archive_directory = D:\base\devFB4\replica\log_source_directory
and remove the "log_archive_command" setting. It's intended for more
complex tasks than just copying.
> # (for the replica side)
> database = D:\base\devFB4\replica\replica.fdb
> {
> log_source_directory = D:\base\devFB4\replica\log_source_directory
> source_guid = AF766288-0231-4849-B226-5719121AA109
> }
>
> Remarks :
> - With source_guid = {AF766288-0231-4849-B226-5719121AA109} (with
> brackets) I have this error in firebird.log when I try to connect source
> database (without bracket it works)
> Authentication error
> cannot attach to password database
> Error in isc_attach_database() API call when working with legacy
> security database
> C:\Firebird\Firebird_4_0\replication.conf: illegal line <source_guid =
> {AF766288-0231-4849-B226-5719121AA109}>
Thanks, this smells like a bug. Curly brackets confuse the config parser
and thus must be excluded but I'm afraid the engine expects them. I will
double check.
> - On replica side in log_source_directory I have this
> file {AF766288-0231-4849-B226-5719121AA109}, It's just to have the date
> of the last replication ?
It contains the replication state: last applied segment/offset and list
of active transactions (if any).
Dmitry