mirror of
https://github.com/vmstan/gravity-sync.git
synced 2025-07-09 02:34:06 -04:00
Updated Changelog (markdown)
parent
334014e11d
commit
99f3df5be2
16
Changelog.md
16
Changelog.md
@ -1,3 +1,19 @@
|
||||
## The Daemon Release
|
||||
|
||||
This release features a different method of managing automated replication. Crontab has been deprecated in favor of scheduled tasks using systemd timers. To switch to the new replication method, just run `./gravity-sync.sh auto` again, and it will remove existing crontab settings in favor of systemd.
|
||||
|
||||
Using systemd allows more options in timing replication jobs, but this especially useful for viewing the logs of previous automation jobs via standard `journalctl -u gravity-sync` commands. Where as previously automation jobs would run at 5, 10, 15 or 30 minute intervals within an hour, new automation tasks within systemd are configured by default to run every 5-10 minutes after being started. (This is 5 minutes + a random timer < 5 minutes.) Replications will automatically attempt for the first time 2 minutes after the system is powered on. This bit of randomization should allow users with multiple secondary Pi-hole syncing from a single primary, the ability to stagger load on the primary.
|
||||
|
||||
- Users wishing to adjust the timing should review the `/etc/systemd/system/gravity-sync.timer` file and adjust the values for `OnBootSec`, `OnUnitInactive`, and `RandomizedDelaySec` accordingly. There is no method within the Gravity Sync interface to adjust these, at present.
|
||||
- Edits made to your `templates/gravity-sync.timer` file are not be persistent after updating Gravity Sync, but the timers applied to your individual system in `/etc/systemd/system/gravity-sync.timer` will not change unless you run `./gravity-sync auto` again after updating.
|
||||
- Leveraging system allows more options in timing replication jobs, but this especially useful for viewing the logs of previous automation jobs via `journalctl -u gravity-sync` More how-to on the advanced uses of `journalctl` can be found [here](https://www.howtogeek.com/499623/how-to-use-journalctl-to-read-linux-system-logs/).
|
||||
|
||||
Previously, running `./gravity-sync.sh auto` and setting the value to 0 would disable the cronjob. Running it again would then prompt for a new value. Now the `AUTOMATE` function will only reapply the latest automation job settings. If you would like to temporarily pause automated replication, you can use `systemctl stop gravity-sync.timer` and then `systemctl start gravity-sync.timer` to begin again.
|
||||
|
||||
- If you would like to completely disable automated replication, you can use `systemctl disable gravity-sync` for this task. Running `./gravity-sync.sh auto` again will enable and start replication again.
|
||||
- If you would like to continue using or managing automation through crontab, these functions have been moved to `./gravity-sync.sh cron` which was previously used to display the output of the previous cronjob.
|
||||
- Users can now just manually `cat logs/gravity-sync.cron` to view the output of the previous cronjob.
|
||||
|
||||
## 3.6 - The Thousand Star Release
|
||||
|
||||
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](https://github.com/vmstan/gravity-sync/wiki).
|
||||
|
Loading…
x
Reference in New Issue
Block a user