Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gladiston opened this issue Feb 29, 2024 · 4 comments

Comments

@gladiston
Copy link

gladiston commented Feb 29, 2024

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 gladiston changed the title [replication] can I trigger a script before or after replicate/merge files? replication in line command to merge replication side any time I want.(assincronous) Feb 29, 2024
@aafemt
Copy link
Contributor

aafemt commented Feb 29, 2024

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.

@dyemanov
Copy link
Member

dyemanov commented Mar 1, 2024

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
Copy link
Member

dyemanov commented Mar 1, 2024

@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.

@gladiston
Copy link
Author

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants