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

Sync gravity.db by dumping and restoring #7

Merged
merged 1 commit into from
Aug 1, 2021
Merged

Conversation

shaderecker
Copy link
Owner

Sync the DB by dumping and restoring with sqlite3.

  • On primary: Make backup of the DB (process has lowest priority for minimum impact on dns performance)
  • On secondaries: Wait 60 seconds until DB is dumped on primary. Then rsync the dump file if changes are detected, stop the pihole container, restore the DB and start the pihole container again.

@shaderecker shaderecker merged commit 13a26c6 into master Aug 1, 2021
@shaderecker shaderecker deleted the improve-sync branch August 8, 2021 14:47
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.

1 participant