AdguardTeam / AdGuardHome

Network-wide ads & trackers blocking DNS server
https://adguard.com/adguard-home.html
GNU General Public License v3.0
25.31k stars 1.82k forks source link

Scheduled Backups #6822

Open Lagicrus opened 7 months ago

Lagicrus commented 7 months ago

Prerequisites

The problem

When reinstalling AdGuard via the provided script, it overwrote my .yaml file containing months of configurations and settings I had applied with seemingly no recourse to reverse that action or find a backup to replace it as I had expected the reinstall process to either not wipe the config, or use it in the new build.

The reinstall process was https://github.com/AdguardTeam/AdGuardHome?tab=readme-ov-file#automated-install-linuxunixmacosfreebsdopenbsd with the -r flag

Proposed solution

Have a setting where the AdGuard yaml file which holds all the data, gets backed up on a set schedule such as every week

Alternatives considered and additional information

No response

whyisthisbroken commented 7 months ago

I don't know, but once you've set it up, you copy the Yaml and save it somewhere as a backup. Once AGH is running, there is no need to change the settings every week, so a weekly backup would be necessary. This is wasted development effort to integrate a backup.

Or you can use a backup like rclone with a schedule.

And why are you reinstalling AGH? Shouldn't updating via GUI be enough?

Lagicrus commented 7 months ago

@whyisthisbroken I agree that solutions like rclone exist. Still, I see no harm in an inbuilt solution, which could be set to run from the second you install it for the first time instead of potentially forgetting until it's too late.

For why I reinstalled it, see https://github.com/AdguardTeam/AdGuardHome/issues/6811, but the short version is that after updating via the GUI, all UI/CSS broke, making it unusable.