mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
docs: updated installation docs for Windows
This commit is contained in:
@@ -175,15 +175,19 @@ restic can be installed from the official repo of Solus via the ``eopkg`` packag
|
|||||||
Windows
|
Windows
|
||||||
=======
|
=======
|
||||||
|
|
||||||
restic can be installed using `Scoop <https://scoop.sh/>`__:
|
restic can be installed using either `Scoop <https://scoop.sh/>`__ or `WinGet <https://learn.microsoft.com/en-us/windows/package-manager/>`__.
|
||||||
|
|
||||||
|
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
|
.. code-block:: console
|
||||||
|
|
||||||
scoop install restic
|
scoop install restic
|
||||||
|
|
||||||
Using this installation method, ``restic.exe`` will automatically be available
|
.. code-block:: console
|
||||||
in the ``PATH``. It can be called from cmd.exe or PowerShell by typing ``restic``.
|
|
||||||
|
|
||||||
|
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:
|
.. _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
|
and ready to run, and a new version is built every time a push is made to the
|
||||||
master branch.
|
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
|
Docker Container
|
||||||
****************
|
****************
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user