AdGuard Home¶
AdGuard Home (AGH) is used to filter ads and as my DNS rewites (assign hostnames to IP addresses).
I have two instances of AGH running: one as an LXC and one on a bare metal Raspberry Pi 2.
Syncing between the instances are done using AdGuard Home Sync
Installation¶
Default Port: 3000
Configuration path: /opt/AdGuardHome
Config¶
/opt/AdGuardHome/AdGuardHome.yaml
Service¶
/etc/systemd/system/AdGuardHome.service
Enable service
Upgrade¶
Upgrading the app is done via the web GUI.
Backup¶
Backups of the AdGuardHome.yaml file are managed by the backup-adguardhome.sh script. This script will automatically commit and push the encrypted AdGuardHome.yaml.enc file to the git repository when changes are detected.
Manual Backup¶
To perform a manual backup, run the following task:
Automatic Backup (Timer)¶
The backup script can be run periodically using a systemd timer.
Configuration¶
Before installing the timer, you may need to configure the path to the backup script in pve/adguardhome/backup.service.tmpl.
By default, the ExecStart path is set to:
pve/adguardhome/backup.service.tmpl
If your project is located elsewhere, you will need to update this path to the correct location of the backup-adguardhome.sh script.
Installation¶
To install and enable the timer, run the following task. This will copy the service and timer files to /etc/systemd/system/ and enable the timer.
Usage¶
You can manage the timer using the following tasks:
task bt:status: Check the status of the backup timer.task bt:start: Start the backup timer.task bt:stop: Stop the backup timer.task bt:enable: Enable the backup timer to start on boot.task bt:disable: Disable the backup timer from starting on boot.
Uninstallation¶
To uninstall the timer, run the following task:
Task List¶
References¶
- https://community-scripts.github.io/ProxmoxVE/scripts?id=adguard
- https://pimox-scripts.com/scripts?id=adguard