From 287ffce9aad8ceb65e7c16150b0542998bbd61c6 Mon Sep 17 00:00:00 2001 From: hkbakke Date: Sat, 18 Mar 2017 13:06:52 +0100 Subject: [PATCH] Add a couple more examples --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 22a679d..22a13e7 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,14 @@ some restrictions so it looks something like this: Use `exec `. `BORG_REPO` is exported to the environment so use `::` when the repo argument is required. -Example: +Examples: borgwrapper exec mount :: /mnt + borgwrapper exec list ### Borg directly Run in subshell if you do not want the passphrase stored in the current shell after the command have exited. Examples: (. /etc/borgwrapper/config.sh; export BORG_PASSPHRASE; borg mount "$BORG_REPO" /mnt) + (. /etc/borgwrapper/config.sh; export BORG_PASSPHRASE; borg list "$BORG_REPO")