AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Settings import/export

Open ammnt opened this issue 4 years ago • 18 comments

Hello,

what about add import and export settings? Because if I create multiple AGH-based servers, I don 't want to configure the same thing every time :D

Thank you.

ammnt avatar Nov 03 '19 16:11 ammnt

signed, i like it

Who-42 avatar Nov 03 '19 16:11 Who-42

@LazyAspect that is easy copy paste task whether CLI or GUI.

(but each server network settings usually different as well)

ghost avatar Nov 04 '19 00:11 ghost

@ArchiveBase, I know that, but it 's not just about you and me. Not all users know it, not all users can even use SSH! This is why we have a convenient web gui for everyone without exception.

ammnt avatar Nov 04 '19 05:11 ammnt

@LazyAspect Well, it's upto your opinion then :) I also interest web user interface as well for where it necessary. sometimes prefer show up possibilities than everything get add on however if you said it recently i might not suggest that.

ghost avatar Nov 04 '19 05:11 ghost

There are several things in .yaml file that can't be easily imported to another machine:

  • bind_host/port
  • dhcp.interface_name
  • tls.certificate and server_name

How do you propose to handle these settings? Note that if any mistake is made there, your AGH will fail to restart. And it's more difficult to test the settings first and only then apply them. We can just skip those settings, but it won't be a correct import operation then.

szolin avatar Nov 05 '19 16:11 szolin

Because if I create multiple AGH-based servers, I don 't want to configure the same thing every time :D

@LazyAspect Just a comment, did you worried about this? https://github.com/AdguardTeam/AdGuardHome/issues/522 and as @szolin mentioned rest of settings each server and client devices specific.

ghost avatar Nov 06 '19 00:11 ghost

An import/export feature for all settings in AdGuard Home would be so good.

The chrome extension has it already, show AdGuard Home some love too ❤️

hl2guide avatar Apr 08 '20 16:04 hl2guide

@szolin We could just make it so that you can only use import/export after the initial setup is completed. That way, if we ignore those few settings that are hard to import, it's not a big deal. My guess is that ghost's use case is a very common one. I needed export/import for the same reason.

So export from the UI could strip out those few settings and import could rewrite the AdGuardHome.yaml file replacing everything but those few settings.

markhicken avatar Jun 08 '21 21:06 markhicken

Settings import/export would be possible once we implement AGH configuration reload properly (which is an ongoing task). Once it's done, this shouldn't be a problem to do that on the UI side.

ameshkov avatar Jun 21 '21 17:06 ameshkov

@ameshkov is there a ticket to track configuration reload? I'm setting up letsencrypt automation and trying to figure out what the best way is to have AGH reload the certs.

hoshsadiq avatar Sep 25 '21 22:09 hoshsadiq

@hoshsadiq the simplest way would be to simply restart AGH.

Here's what I am using on my personal server: https://github.com/ameshkov/legoagh

ameshkov avatar Sep 27 '21 09:09 ameshkov

Hello,

what about add import and export settings? Because if I create multiple AGH-based servers, I don 't want to configure the same thing every time :D

Thank you.

Can this include using EXPORTS from ADGUARD Windows (and/or other operating systems)? The idea is to make it easy to quickly configure Adguard Home to make all devices work as comfortably as it does for one device. It also would prevent conflicts in settings? For example, there are dns settings in Adguard Windows that may different from DNS settings in Adguard home?

The next idea would be to have Adguard Home work differently for different devices based on different imported profiles (imported from the exports of AdGuard Software from other devices, such as windows)

For example, I can export settings from Device 1's Adguard For PC to Adguard home's profile for Device 1. Then I can export settings from Device 2's Adguard For Linux to Adguard home's profile for Device 2 and Device 3 which is a Blackberry Phone.

For now, I am fine with using one exported settings from Adguard for Windows to my router's Adguard Home. This way every device feels just as comfortable. I wouldn't mind entering my Activation code in Adguard home for this feature. Unless there is a privacy concern with it?

if there are parts of the exported settings that are incompatible... just have adguard not apply those? if there are parts of the exports that need translation/conversion then maybe Adguard for Windows could have a function to do such conversion. This way, you don't have to increase the size of Adguard home within the router... Sorry if i made any noob mistake. This is my first post.

JustHereForHelp2 avatar Nov 19 '22 14:11 JustHereForHelp2

I've used to copy the AdGuardHome.yaml to a remote location as a backup. But when I tried this weekend to restore the yaml file adguardhome won't start

Permissions are identical OS is FreeBSD 13.1 starting fresh did the trick but also stopping the service, copy the yaml away and back again (without editing) the service won't start again

Viper780 avatar Dec 23 '22 10:12 Viper780

I recently had AGH running on docker and my server crashed so I lost the config. This would be a HUGE time saver especially if I want to create multiple AGH servers within my network.

ericchesman avatar Jan 17 '23 20:01 ericchesman

I recently had AGH running on docker and my server crashed so I lost the config. This would be a HUGE time saver especially if I want to create multiple AGH servers within my network.

A native import/export feature would definitely be great. In the meantime, you should check out adguard-sync. As you can guess from the name, it's works great for keeping multiple AGH instances in sync.

jsanagustin avatar Jan 18 '23 05:01 jsanagustin

Hello, Any news on this ? Thanks

KaKi87 avatar Nov 10 '23 22:11 KaKi87

No news, unfortunately. This feature is still blocked on a few internal changes.

ainar-g avatar Nov 13 '23 10:11 ainar-g