Skip to content

Instantly share code, notes, and snippets.

@geekpete
Forked from amarendra/restic_files.txt
Created April 26, 2019 10:50
Show Gist options
  • Save geekpete/1bccb8a42e0aec3c39b9c44f71c6b9f8 to your computer and use it in GitHub Desktop.
Save geekpete/1bccb8a42e0aec3c39b9c44f71c6b9f8 to your computer and use it in GitHub Desktop.
Restic backup setup
### this is how file .restic.env is
export RESTIC_REPOSITORY="b2:XXXXXXX:YYYYYY"
export B2_ACCOUNT_ID="<a/c id>"
export B2_ACCOUNT_KEY="<a/c key"
export RESTIC_PASSWORD_FILE="$HOME/<a dropbox folder>/restic.pwd"
export RESTIC_INCLUDE_FILE="$HOME/<a dropbox folder>/restic.include"
export RESTIC_EXCLUDE_FILE="$HOME/<a dropbox folder>/restic.exclude"
export RESTIC_LOG_DIR="$HOME/.restic/log/"
### file: restic.pwd
This file just has a string that is my restic password. This file is read only and it's owned by
the user. When this file was owned by root I needed to run restic with an elevated permission so to avoid it reverted
ownership.
### file: restic.exclude
*.DS_Store
*.swp
.Trash
.Xauthority
.bash_sessions
### file: restic.include
/Users/amarendra/Pictures
/Users/amarendra/Movies
/Users/amarendra/My Audio
/Users/amarendra/.<a folder>
/Users/amarendra/.shuttle.json
/Users/amarendra/.notes
/Users/amarendra/.dotfiles
/Users/amarendra/<a dropbox folder>
/Users/amarendra/<a dropbox folder>
/Users/amarendra/<a dropbox folder>
/Users/amarendra/<a dropbox folder>
# /Users/amarendra/Library/Mail/V5 # it was changing too much and too frequently. I guess I will have to use something else for mailbackup
/Users/amarendra/Library/Mobile Documents/com~apple~CloudDocs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment