瀏覽代碼

Add note about setting PATH environment variable when installing borgmatic.

Dan Helfman 5 年之前
父節點
當前提交
68459c6795
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      docs/how-to/set-up-backups.md

+ 8 - 2
docs/how-to/set-up-backups.md

@@ -19,8 +19,14 @@ sudo pip3 install --user --upgrade borgmatic
 
 This is a [recommended user site
 installation](https://packaging.python.org/tutorials/installing-packages/#installing-to-the-user-site).
-You will need to ensure that `/root/.local/bin` is available on your `$PATH` so
-that the borgmatic executable is available.
+You will need to ensure that `/root/.local/bin` is available on your `$PATH`
+so
+that the borgmatic executable is available. For instance, adding this to
+root's `~/.profile` or `~/.bash_profile` may do the trick:
+
+```bash
+export PATH="$PATH:~/.local/bin"
+```
 
 Note that your pip binary may have a different name than "pip3". Make sure
 you're using Python 3, as borgmatic does not support Python 2.