From 8a65458be569e7126fdbdaac1644f1a680cac147 Mon Sep 17 00:00:00 2001 From: Yuriy Selivanov Date: Fri, 7 Nov 2025 11:35:08 +0300 Subject: [PATCH 1/3] Added a description of the settings export and import commands --- docs/adguard-for-linux/settings.md | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/docs/adguard-for-linux/settings.md b/docs/adguard-for-linux/settings.md index 2b3ec288da0..bbff6c52909 100644 --- a/docs/adguard-for-linux/settings.md +++ b/docs/adguard-for-linux/settings.md @@ -199,3 +199,42 @@ adguard-cli config show outbound_proxy Configuring `outbound_proxy` via URL is available starting from AdGuard for Linux v1.1.26 nightly and v1.1 stable release. ::: + +## Export and import settings + +### Export settings + +To export current AdGuard CLI settings to a ZIP archive, use: + +```sh +adguard-cli export-settings +``` + +You can specify the output path using the `-o` or `--output` flag. This can be either a specific file path or a directory: + +```sh +# Export to a specific file +adguard-cli export-settings -o "/path/to/settings.zip" + +# Export to a directory (archive will be created with a standard name) +adguard-cli export-settings -o "/path/to/directory" +``` + +If no output path is specified, the settings will be exported to the working directory with a standard name. After successful export, the command will display the full path where the archive was created. + +### Import settings + +To import AdGuard CLI settings from a ZIP archive, use: + +```sh +adguard-cli import-settings -i "/path/to/settings.zip" +``` + +The `-i` or `--input` flag is required and specifies the path to the settings archive to import. + +:::note + +The export/import functionality allows you to backup your AdGuard CLI configuration and restore it on the same or different system. This includes filters, proxy settings, and other configuration options. + +::: +>>>>>>> Stashed changes From 24e3c244e800352aa94e38083227f3a2036fd53d Mon Sep 17 00:00:00 2001 From: Yuriy Selivanov Date: Fri, 7 Nov 2025 11:37:44 +0300 Subject: [PATCH 2/3] refactoring --- docs/adguard-for-linux/settings.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/adguard-for-linux/settings.md b/docs/adguard-for-linux/settings.md index bbff6c52909..02120e77bcb 100644 --- a/docs/adguard-for-linux/settings.md +++ b/docs/adguard-for-linux/settings.md @@ -237,4 +237,3 @@ The `-i` or `--input` flag is required and specifies the path to the settings ar The export/import functionality allows you to backup your AdGuard CLI configuration and restore it on the same or different system. This includes filters, proxy settings, and other configuration options. ::: ->>>>>>> Stashed changes From 4eab9b3c5b03da040e35fc4e7a3e923c6e816d4c Mon Sep 17 00:00:00 2001 From: Yuriy Selivanov Date: Wed, 12 Nov 2025 09:40:33 +0300 Subject: [PATCH 3/3] refactoring --- docs/adguard-for-linux/settings.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/adguard-for-linux/settings.md b/docs/adguard-for-linux/settings.md index 02120e77bcb..8bb6c10c1a8 100644 --- a/docs/adguard-for-linux/settings.md +++ b/docs/adguard-for-linux/settings.md @@ -202,6 +202,8 @@ Configuring `outbound_proxy` via URL is available starting from AdGuard for Linu ## Export and import settings +The export/import functionality allows you to backup your AdGuard CLI configuration and restore it on the same or different system. This includes filters, proxy settings, and other configuration options. + ### Export settings To export current AdGuard CLI settings to a ZIP archive, use: @@ -231,9 +233,3 @@ adguard-cli import-settings -i "/path/to/settings.zip" ``` The `-i` or `--input` flag is required and specifies the path to the settings archive to import. - -:::note - -The export/import functionality allows you to backup your AdGuard CLI configuration and restore it on the same or different system. This includes filters, proxy settings, and other configuration options. - -:::