AdguardTeam / AdGuardHome

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

Settings import/export #1147

Open ammnt opened 4 years ago

ammnt commented 4 years ago

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.

Who-42 commented 4 years ago

signed, i like it

ghost commented 4 years ago

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

(but each server network settings usually different as well)

ammnt commented 4 years ago

@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.

ghost commented 4 years ago

@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.

szolin commented 4 years ago

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

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.

ghost commented 4 years ago

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.

hl2guide commented 4 years ago

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 ❤️

markhicken commented 3 years ago

@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.

ameshkov commented 3 years ago

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.

hoshsadiq commented 2 years ago

@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.

ameshkov commented 2 years ago

@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

JustHereForHelp2 commented 1 year ago

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.

Viper780 commented 1 year ago

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

ericchesman commented 1 year ago

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.

jsanagustin commented 1 year ago

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.

KaKi87 commented 8 months ago

Hello, Any news on this ? Thanks

ainar-g commented 8 months ago

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

c0154936 commented 1 month ago

Just a thought, if you are going to enable an import function, maybe you can also handle Pi-hole configuration file as well (maybe call it a import/migrate function)