Adguard Home Sync¶
AdGuard Home Sync is used to sync settings between my AdGuard Home instances.
It is installed only on the primary instance and is scheduled to run once a day, which is scheduled in the config file.
 Installation¶
  Default Port: 8080
 Binary path: /usr/local/bin
 Config¶
 /etc/systemd/system/adguardhome-sync.service
```shell cat > /etc/systemd/system/adguardhome-sync.service <<EOF [Unit] Description = AdGuardHome Sync After = network.target
[Service] ExecStart = /usr/local/bin/adguardhome-sync --config ${HOME}/git/nicholaswilde/homelab/pve/adguardhome-sync/adguardhome-sync.yaml run
    [Install]
    WantedBy = multi-user.target
    EOF
    ```
=== "Download"
    ```shell
    wget https://github.com/nicholaswilde/homelab/raw/refs/heads/main/pve/adguardhome-sync/adguardhome-sync.service -O /etc/systemd/system/adguardhome-sync.service
    ```
=== "Manual"
    ```ini title="/opt/adguardhome-sync/adguardhome-sync.service"
    [Unit]
    Description = AdGuardHome Sync
    After = network.target
    [Service]
    ExecStart = /usr/local/bin/adguardhome-sync --config ${HOME}/git/nicholaswilde/homelab/pve/adguardhome-sync/adguardhome-sync.yaml run
    [Install]
    WantedBy = multi-user.target
    ```
Enable service
shell ( cp /opt/adguardhome-sync/adguardhome-sync.service /etc/systemd/system/ && \ systemctl enable adguardhome-sync.service && \ systemctl start adguardhome-sync.service && \ systemctl status adguardhome-sync.service )
 Upgrade¶
  Task List¶
task: Available tasks for this project:
* bootstrap:             Bootstrap adguardhome-sync
* decrypt:               Decrypt sensitive configuration files using SOPS.
* default:               List all available tasks.
* enable:                Enable the application's systemd service.
* encrypt:               Encrypt sensitive configuration files using SOPS.
* export:                Export the task list to `task-list.txt`.
* init:                  Initialize the application's environment and configuration files.
* install:               Install adguardhome-sync
* install-service:       Install the application's systemd service.
* reload:                Reload the application's systemd service.
* restart:               Restart the application's systemd service.
* start:                 Start the application's systemd service.
* status:                Get the service status
* stop:                  Stop the application's systemd service.
* update:                Update adguardhome-sync