Skip to content

Conversation

@cleary
Copy link

@cleary cleary commented Dec 5, 2018

Hi,
Thanks for the project, I'm using lsyncd to store config backups on disk, and these need to be restored on initial login -

There's a bit of complexity in the lua conf files I'm writing (rsync --include/excludes), so rather than write a lua conf parser to do the initial restore sync, I added a -onepass switch to lsyncd which would allow me to sync and immediately exit lsyncd.
Then I can reverse the target and source and continue my normal sync operations -

Fyi I've patched the release in ubuntu 18.04, and have adapted that patch for this git repo (but not tested explicitly) - I hope it is ok.

Copy link
Author

@cleary cleary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, the indenting was messed up, I've fixed that now -

@poelzi poelzi merged commit d737c03 into lsyncd:master Dec 10, 2021
@poelzi
Copy link
Member

poelzi commented Dec 10, 2021

Your patch did not really work, as the main loop was not terminating. I fixed that, please test

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

Successfully merging this pull request may close these issues.

2 participants