2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-29 16:23:59 +00:00

Merge pull request #3534 from jtagcat/patch-1

docs/example: useradd: restic now system account
This commit is contained in:
MichaelEischer 2021-10-09 20:42:43 +02:00 committed by GitHub
commit eb282532dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ the backups:
.. code-block:: console
root@a3e580b6369d:/# useradd -m restic
root@a3e580b6369d:/# useradd --system --create-home --shell /sbin/nologin restic
Then we download and install the restic binary into the user's home
directory (please adjust the URL to refer to the latest restic version).
@ -317,7 +317,7 @@ directory (please adjust the URL to refer to the latest restic version).
.. code-block:: console
root@a3e580b6369d:/# mkdir ~restic/bin
root@a3e580b6369d:/# curl -L https://github.com/restic/restic/releases/download/v0.9.6/restic_0.9.6_linux_amd64.bz2 | bunzip2 > ~restic/bin/restic
root@a3e580b6369d:/# curl -L https://github.com/restic/restic/releases/download/v0.12.1/restic_0.12.1_linux_amd64.bz2 | bunzip2 > ~restic/bin/restic
Before we assign any special capability to the restic binary we
restrict its permissions so that only root and the newly created