# vmstan/gravity-sync

💫 The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances.

Repository: https://github.com/vmstan/gravity-sync
Canonical: https://ross.abutalabs.com/products/gravity-sync
Homepage: https://vmstan.com/gravity-sync/
Language: Shell
License: GPL-3.0
License Family: copyleft
Topics: pi-hole, raspberry-pi, dns, replication
Archived: true
Last push: 2024-07-26T18:45:33+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2295, "days_push": 768, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2305, forks 134 (observed 2026-08-28T04:06:35.731350+00:00)

## What it is
Gravity Sync is a shell script that replicates the DNS blocking configuration (adlists, whitelists, blacklists, groups, local DNS/CNAME records, and static DHCP assignments) between two Pi-hole 5.x instances. It was retired in July 2024 and does not support Pi-hole 6+.

## Use cases
- keep two pi-hole instances in sync
- synchronize pi-hole adlists between primary and secondary
- set up redundant pi-hole high availability
- replicate pi-hole local dns records to a backup
- automate pi-hole config replication with cron
- sync pi-hole gravity.db between servers

## When to choose
- you run two Pi-hole 5.x instances and want them to share blocking configuration
- you need a simple pull-based replication script with cron automation
- you want community-maintained replication not offered by core Pi-hole

## When to avoid
- you run Pi-hole 6 or later, which changed the architecture
- you need bidirectional merging or real-time replication
- you want to sync query logs, statistics, or DHCP leases
- you need actively maintained software

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: workflow-automation, scheduling, configuration-management, networking
- domain: networking, self-hosted, developer-tools
- platform: cli, self-hosted
- tags: pi-hole, dns-replication, shell-script, high-availability, raspberry-pi, retired, automation, linux

## Member repositories
- vmstan/gravity-sync (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.731350+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:39:42.705728+00:00, confidence not recorded.
  - readme: https://github.com/vmstan/gravity-sync (fetched 2026-08-28T04:06:35.731350+00:00, sha 4ecc35beded8)
  - homepage: https://vmstan.com/gravity-sync/ (fetched 2026-08-29T10:20:03.781680+00:00, sha 827fb614484a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
