From 2db08fd7491e14dcf16be15e4e9c548e89d27816 Mon Sep 17 00:00:00 2001 From: Mark Lopez Date: Sat, 3 May 2025 10:27:50 -0500 Subject: [PATCH] docs: updated installation docs for Windows --- doc/020_installation.rst | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/doc/020_installation.rst b/doc/020_installation.rst index a39ca896b..f79819837 100644 --- a/doc/020_installation.rst +++ b/doc/020_installation.rst @@ -175,15 +175,19 @@ restic can be installed from the official repo of Solus via the ``eopkg`` packag Windows ======= -restic can be installed using `Scoop `__: +restic can be installed using either `Scoop `__ or `WinGet `__. + +Regardless of the method, the ``restic.exe`` binary will be added to your ``PATH`` automatically, making the ``restic`` command accessible in Powershell or CMD. .. code-block:: console scoop install restic -Using this installation method, ``restic.exe`` will automatically be available -in the ``PATH``. It can be called from cmd.exe or PowerShell by typing ``restic``. +.. code-block:: console + winget install --exact --id restic.restic --scope Machine + +By default, WinGet will install restic into the ``User`` scope, which is typically in your user's ``%LOCALAPPDATA%`` directory. This behavior may be undesirable for system-wide backups, so specifying ``--scope Machine`` is recommended so that restic is installed into ``%ProgramFiles%``. This requires elevation. .. _official_binaries: @@ -253,13 +257,6 @@ the `restic beta download site and ready to run, and a new version is built every time a push is made to the master branch. -Windows -======= - -On Windows, put the `restic.exe` binary into `%SystemRoot%\\System32` to use restic -in scripts without the need for absolute paths to the binary. This requires -administrator rights. - Docker Container ****************