gravity-sync/CHANGELOG.md

151 lines
4.9 KiB
Markdown
Raw Normal View History

2020-05-29 22:56:47 +00:00
# The Changelog
2020-05-29 22:17:53 +00:00
2020-05-29 22:25:20 +00:00
## 1.7
2020-05-30 01:11:04 +00:00
### The Andrew Release
2020-05-29 22:37:42 +00:00
**Features**
2020-05-29 22:56:47 +00:00
- Gravity Sync will now manage the `custom.list` file that contains the "Local DNS Records" function within the Pi-hole interface.
- If you do not want this feature enabled it can be bypassed by adding a `SKIP_CUSTOM='1'` to your .conf file.
2020-05-29 22:37:42 +00:00
- Sync will be trigged during a pull operation if there are changes to either file.
**Known Issues**
- No new Star Trek references.
2020-05-30 01:11:04 +00:00
#### 1.7.1
2020-05-29 23:03:40 +00:00
- There is a changelog file now. I'm mentioning it in the changelog file. So meta.
- `./gravity-sync.sh version` will alert for new versions.
2020-05-29 22:25:20 +00:00
## 1.6
2020-05-30 01:11:04 +00:00
### The Restorative Release
2020-05-29 22:37:42 +00:00
**Features**
2020-05-29 22:56:47 +00:00
- New `./gravity-sync restore` function will bring a previous version of the `gravity.db` back from the dead.
2020-05-29 22:37:42 +00:00
- Changes way that GS prompts for data input and how confirmation prompts are handled.
2020-05-29 22:56:47 +00:00
- Adds ability to override verification of push, restore or config reset, see `.example` file for details.
2020-05-29 22:37:42 +00:00
- Five new Star Trek references.
**Bug Fixes**
- New functions add consistency in status output.
2020-05-29 22:25:20 +00:00
## 1.5
2020-05-30 01:11:04 +00:00
### The Automated Release
2020-05-29 22:56:47 +00:00
**Features**
2020-05-29 22:25:20 +00:00
2020-05-29 22:56:47 +00:00
- You can now easily deploy the task automation via crontab by running `./gravity-sync.sh automate` which will simply ask how often you'd like to run the script per hour, and then create the entry for you.
- If you've already configured an entry for this manually with a prior version, the script should detect this and ask that you manually remove it or edit it via crontab -e. I'm hesitant to delete existing entries here, as it could potentially remove something unrelated to Gravity Sync.
**Bug Fixes**
- Changes method for pulling development branch updates via the beta function.
- Cleanup of various exit commands.
2020-05-30 01:11:04 +00:00
## 1.4
### The Configuration Release
2020-05-29 22:56:47 +00:00
**Features**
- Adds new `./gravity-sync config` feature to simplify deployment!
- Adds variables for SSH settings.
- Rearranges functions, which impacts nothing.
- All new and exciting code comments.
- No new Star Trek references.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.4.1
2020-05-29 22:56:47 +00:00
- Adds variables for custom log locations to `gravity-sync.conf`, see `.example` file for listing.
### 1.4.2
- Will prompt to create new `gravity-sync.conf` file when run without an existing configuration.
### 1.4.3
- Bug fixes around not properly utilizing custom SSH keyfile.
2020-05-29 22:25:20 +00:00
## 1.3
2020-05-30 01:11:04 +00:00
### The Comparison Release
2020-05-29 22:56:47 +00:00
1.3 should be called 2.0, but I'll resist that temptation -- so many new enhancements!
**Features**
2020-05-30 01:11:04 +00:00
- Gravity Sync will now compare remote and local databases and only replicate if it detects a difference.
2020-05-29 22:56:47 +00:00
- Verifies most commands complete before continuing each step to fail more gracefully.
- Additional debugging options such as checking last cronjob output, if configured.
- Much more consistency in how running commands are processed in interactive mode.
2020-05-30 01:11:04 +00:00
#### 1.3.1
2020-05-29 22:56:47 +00:00
- Changes [GOOD] to [DONE] in execution output.
- Better validation of initial SSH connection.
- Support for password based authentication using SSHPASS.
2020-05-30 01:11:04 +00:00
#### 1.3.2
2020-05-29 22:56:47 +00:00
- MUCH cleaner output, same great features.
2020-05-30 01:11:04 +00:00
#### 1.3.3
2020-05-29 22:56:47 +00:00
- Corrected Pihole bin path issue that cause automated sync not to reload services.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.3.4
- Moves backup of local database before initiating remote pull.
- Validates file ownership and permissions before attempting to rewrite.
- Added two Star Trek references.
2020-05-29 22:25:20 +00:00
## 1.2
2020-05-30 01:11:04 +00:00
### The Functional Release
2020-05-29 22:56:47 +00:00
- Refactored process to use functions and cleanup process of execution.
- Does not look for permission to update when run.
- Cleanup and expand comments.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.2.1
2020-05-29 22:56:47 +00:00
- Improved logging functions.
2020-05-30 01:11:04 +00:00
#### 1.2.2
2020-05-29 22:56:47 +00:00
- Different style for status updates.
2020-05-30 01:11:04 +00:00
#### 1.2.3
2020-05-29 22:56:47 +00:00
- Uses a dedicated backup folder for `.backup` and `.last` files.
- Copies db instead of moving to rename and then replacing to be more reliable.
- Even cleaner label status.
2020-05-30 01:11:04 +00:00
#### 1.2.4
2020-05-29 22:56:47 +00:00
- Changes `~` to `$HOME`.
- Fixes bug that prevented sync from working when run via crontab.
2020-05-30 01:11:04 +00:00
#### 1.2.5
2020-05-29 22:56:47 +00:00
- Push function now does a backup, on the secondary PH, of the primary database, before pushing.
2020-05-29 22:25:20 +00:00
## 1.1
2020-05-30 01:11:04 +00:00
### The Pushy Release
2020-05-29 22:56:47 +00:00
- Seperated main purpose of script into `pull` argument.
- Allow process to reverse back using `push` argument.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.1.2
2020-05-29 22:56:47 +00:00
- First release since move from being just a Gist.
- Just relearning how to use GitHub, minor bug fixes.
2020-05-29 22:37:42 +00:00
2020-05-30 01:11:04 +00:00
#### 1.1.3
2020-05-29 22:56:47 +00:00
- Now includes example an configuration file.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.1.4
2020-05-29 22:56:47 +00:00
- Added update script.
- Added version check.
2020-05-29 22:25:20 +00:00
2020-05-30 01:11:04 +00:00
#### 1.1.5
2020-05-29 22:56:47 +00:00
- Added ability to view logs with `./gravity-sync.sh logs`.
2020-05-30 01:11:04 +00:00
#### 1.1.6
2020-05-29 22:56:47 +00:00
- Code easier to read with proper tabs.
## 1.0
2020-05-30 01:11:04 +00:00
### The Initial Release**
No version control, variables or anything fancy. It only worked if everything was exactly perfect.
2020-05-29 22:25:20 +00:00
```
echo 'Copying gravity.db from HA primary'
rsync -e 'ssh -p 22' ubuntu@192.168.7.5:/etc/pihole/gravity.db /home/pi/gravity-sync
echo 'Replacing gravity.db on HA secondary'
sudo cp /home/pi/gravity-sync/gravity.db /etc/pihole/ echo 'Reloading configuration of HA secondary FTLDNS from new gravity.db'
pihole restartdns reload-lists
echo 'Cleaning up things'
mv /home/pi/gravity-sync/gravity.db /home/pi/gravity- sync/gravity.db.last
```
For real, that's it. 7 lines.