Updated Removal (markdown)

Michael Stanclift 2022-04-11 17:03:56 -05:00
parent f5ba221b39
commit 6e0c8dd66f

@ -1,25 +1,15 @@
Gravity Sync has a built in tool to purge everything custom about itself from the system. This can be used to reset a failed install, or in the lead up to removing Gravity Sync completely if it's no longer useful for you. Gravity Sync has a built in tool to purge everything about itself from the system. This can be used to reset a failed install, or permanently if you decide it's no longer useful for you.
```bash ```bash
./gravity-sync.sh purge gravity-sync purge
``` ```
This will remove: This will remove/disable:
- All backups files. - The Gravity Sync binary in `/usr/bin/gravity-sync`
- Your `gravity-sync.conf` file. - Your configuration and job history in `/etc/gravity-sync`
- All cronjob/automation tasks. - All systemd automation tasks.
- All job history/logs.
- The SSH id_rsa keys associated with Gravity Sync.
This function will totally wipe out your existing Gravity Sync installation and reset it to the default state for the version you are running. If all troubleshooting of a bad installation fails, this is the command of last resort. **This will not impact any of the Pi-hole binaries, configuration files, directories, services, etc.** Your Gravity Database, local DNS Records and local DNS CNAMEs will no longer sync, but they will be in the status they were prior to when Gravity Sync was removed.
**This will not impact any of the Pi-hole binaries, configuration files, directories, services, etc.** Your Domain Database, Local DNS Records and Local DNS CNAMEs will no longer sync, but they will be in the status they were prior to when Gravity Sync was removed. - You will need to run the `PURGE` command on both Pi-hole instances where Gravity Sync is installed.
### Uninstalling
If you are completely uninstalling Gravity Sync, the last step would be to remove the `gravity-sync` folder from your installation directory.
```bash
rm -fr gravity-sync
```