Skip to content

Commit de41baa

Browse files
committed
adding env.local and updating instructions.
1 parent 3bd2e30 commit de41baa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@ chmod +x restic-install.sh
1717
sudo ./restic-install.sh
1818
```
1919

20-
+ Add the [restic_aliases](restic_aliases) snipplet below to your ~/.bashrc or ~/.bash_aliases to simplify calling of restic.
20+
+ Add [restic_aliases](restic_aliases) and [env.local](env.local) below to your ~/.bashrc or ~/.bash_aliases to simplify calling of restic.
2121

2222
```bash
23+
if [ -f ~/.scripts/restic-scripts/env.local ]; then
24+
. ~/.scripts/restic-scripts/env.local
25+
fi
26+
2327
if [ -f ~/.scripts/restic-scripts/restic_alises ]; then
2428
. ~/.scripts/restic-scripts/restic_aliases
2529
fi

env.local

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Backups ###
2+
export SCRIPT_DIR="/home/username/.scripts/restic-scripts" #update to user
3+
export BU_HOMEFOLDER_CONF="${SCRIPT_DIR}/restic-homedir.conf"
4+
export BU_COREFOLDERS_CONF="${SCRIPT_DIR}/restic-corefolders.conf"
5+
export RESTIC_PASSWORD_FILE="${SCRIPT_DIR}/.backup_secrets"

0 commit comments

Comments
 (0)