firebird icon indicating copy to clipboard operation
firebird copied to clipboard

replication in line command to merge replication side any time I want.(assincronous)

Open gladiston opened this issue 11 months ago • 4 comments

In replication.conf will be wellcome parameter as:

journal_source_directory_pre_script=/usr/bin/replicate_point_mount.sh journal_source_directory_pos_script=/usr/bin/replicate_point_umount.sh

The parameter journal_source_directory_pre_script can be used to trigger a script that can mount/copy/whatever files that will be replicate/merge.

The parameter journal_source_directory_pos_script can be used to trigger a script that can umount, remove temp files, etc... after replicate/merge.

Or (better) replication in line command to merge replication side any time I want.(assincronous)

Just an idea.

gladiston avatar Feb 29 '24 19:02 gladiston

Isn't it exactly purpose of journal_archive_command setting? To let you do whatever you like before, after and during (or instead of) journal delivery to replica.

aafemt avatar Feb 29 '24 20:02 aafemt

Isn't it exactly purpose of journal_archive_command setting? To let you do whatever you like before, after and during (or instead of) journal delivery to replica.

This request is about the replica side.

dyemanov avatar Mar 01 '24 05:03 dyemanov

@gladiston A command-line tool to manually apply some set of replication segments is considered. If you include it into the script with the required pre- and post- processing, it should do the things you need.

dyemanov avatar Mar 01 '24 05:03 dyemanov

@gladiston A command-line tool to manually apply some set of replication segments is considered. If you include it into the script with the required pre- and post- processing, it should do the things you need.

Yes, it´s much better!

gladiston avatar Mar 01 '24 13:03 gladiston