💫 The easy way to synchronize the DNS configuration of two Pi-hole 5.x instances.
prep
folder from this repo, so gs-install.sh is no longer part of the installation bundle. The code can be found at https://github.com/vmstan/gs-install allowing me to iterate faster on it outside of the standard Gravity Sync releases.In celebration of this GitHub repo reaching 1000 ⭐, here is a major rewrite of the ./gravity-sync.sh config
wizard. You are no longer prompted to go into advanced mode as soon as you run the wizard. Most users who have standard installs of Pi-hole on both the local and remote sides will just need to plug in the IP of the remote system, and the SSH username. The guidance for advanced mode has been cleaned up, to hopefully be clearer. Some really advanced settings have been removed from even the advanced part of the wizard. This includes changing the SSH ports, performing ICMP tests, or using a custom RSA keyfile. While these options remain available to users, they now require hand editing the .conf file instead of using the configuration wizard. Instructions for such setups can be found on the Wiki.
If the wizard detects you are running Docker or Podman binaries on the local Pi-hole, it will automatically engage the advanced setup. Even if you're not running Pi-hole in a container. This is by design.
There is now an additional way to enable replication of CNAME Records, if you forget to do so in the when running the configuration wizard. ./gravity-sync.sh cname
will enable this flag. If you decide at a later date you turn this off, you can manually edit the configuration file or create a new configuration using the ./gravity-sync.sh config
wizard.
Full Changelog: https://github.com/vmstan/gravity-sync/compare/v3.5.0...v3.6.0
This release changes the backup retention behavior of Gravity Sync. After successful execution of any replication command, Gravity Sync will now wipe out any files from the backup
folder. To be clear, this means Gravity Sync will no longer intentionally retain any backups of the Domain Database, Local DNS Records, CNAME Records, after a successful replication.
For a subset of users, the issues of drives filling up because it doesn't properly prune outweigh both the perceived value and my ability to troubleshoot and sort out why this is happening in every instance.
Consequently, the ./gravity-sync.sh backup
and ./gravity-sync.sh restore
functions have been removed. Any references to backup or restore functions should be removed. Most references in the UI have been changed from backup to copy operations, although variable names and such still reference backup functions.
Folks who have been relying on Gravity Sync to keep historical configuration backups should look for another solution.
Full Changelog: https://github.com/vmstan/gravity-sync/compare/v3.4.8...v3.5.0
.push
and .pull
files in backup folder during backup cleanup.BACKUP_REMAIN
value in configuration to 0
will now purge all .backup
files.60
to 240
seconds../gravity-sync.sh info
output.BACKUP_INTEGRITY_WAIT
variable to control pause (default 5 seconds) before integrity checks are run on new backup files.find
command invoke (Issue #220) (#223)