From 9dba7a25770fe4746db3607055fd508e218175f5 Mon Sep 17 00:00:00 2001 From: rawtaz Date: Sat, 18 Apr 2020 12:47:47 +0200 Subject: [PATCH] doc: Add note on tilde expansion in exclude files Explains to the reader that tilde expansion does not work in exclude files, and that they should instead use the $HOME variable. --- doc/040_backup.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/040_backup.rst b/doc/040_backup.rst index 0a1d6b17e..6d55843be 100644 --- a/doc/040_backup.rst +++ b/doc/040_backup.rst @@ -174,7 +174,7 @@ even if restic is passed a relative path to save. Environment-variables in exclude files are expanded with `os.ExpandEnv `__, so ``/home/$USER/foo`` will be expanded to ``/home/bob/foo`` for the user ``bob``. -To get a literal dollar sign, write ``$$`` to the file. +To get a literal dollar sign, write ``$$`` to the file. Note that tilde (``~``) expansion does not work, please use the ``$HOME`` environment variable instead. Patterns need to match on complete path components. For example, the pattern ``foo``: