Merge branch 'master' of git.home.ld:psi-jack/my-yadm

This commit is contained in:
Eric Renfro 2020-03-01 00:48:54 -05:00
commit bbc42ccbea
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
3 changed files with 79 additions and 0 deletions

27
.config/emborg/macos Normal file
View file

@ -0,0 +1,27 @@
#src_dirs = '~'.split() # absolute path to directory to be backed up
src_dirs = '''
~
'''.split()
excludes = '''
~/tmp
~/Library/Application Support/Steam
~/Library/Application Support/Google
~/Library/Application Support/LogMeInInc
~/Library/Application Support/Code
~/Library/Application Support/Firefox
~/Library/Containers
~/Library/Group Containers
~/Library/Logs
~/Library/Python
~/Library/Caches
~/.cache
~/.mozilla
~/.config/google-chrome
~/.config/BraveSoftware
~/**/__pycache__
~/**/*.pyc
~/**/.*.swp
~/**/.*.swo
'''.split()

View file

@ -0,0 +1,52 @@
# These settings are common to all configurations
# configurations
configurations = 'macos'
default_configuration = 'macos'
# passcode
# specify either passphrase or avendesora_account
#passphrase = '<<passcode>>' # passphrase for encryption key
#avendesora_account = '<<account-name>>' # avendesora account holding passphrase
encryption = 'none' # borg encryption method
# Common choices are 'repokey' and 'keyfile'.
# With 'repokey' the encryption key is copied into repository, use this
# only if the remote repository is owned by you and is secure.
# With 'keyfile' the encryption key is only stored locally. Be sure to
# export it and save a copy in a safe place, otherwise you may not be
# able to access your backups if you lose your disk.
# basic settings
# specify notify if batch and notifier if interactive
notify = 'psi-jack@linux-help.org' # who to notify when things go wrong
#notifier = 'notify-send -u normal {prog_name} "{msg}"'
notifier = "osascript -e 'display notification \"{msg}\" with title \"Emborg Backup\"'"
# interactive notifier program
remote_ratelimit = 2000 # bandwidth limit in kbps
prune_after_create = True # automatically run prune after a backup
check_after_create = 'latest' # automatically run check after a backup
# repository settings
compression = 'lz4'
repository = 'mega:/volume1/homes/psi-jack/borg'
remote_path = '/usr/local/bin/borg'
archive = '{prefix}{{now:%Y%m%d}}'
prefix = '{host_name}-'
# These may contain {<name>} where name is any of host_name, user_name,
# prog_name config_name, or any of the user specified settings.
# Double up the braces to specify parameters that should be interpreted
# by borg.
# filter settings
exclude_if_present = '.nobackup'
one_file_system = False
exclude_caches = True
# prune settings
keep_within = '1d' # keep all archives created in interval
keep_hourly = 48 # number of hourly archives to keep
keep_daily = 14 # number of daily archives to keep
keep_weekly = 8 # number of weekly archives to keep
keep_monthly = 24 # number of monthly archives to keep
keep_yearly = 1 # number of yearly archives to keep