Compare commits

..

15 Commits

Author SHA1 Message Date
d2b24e3896 misc: ignore .venv dir 2021-10-16 01:52:55 -04:00
11638c5443 backup: revert to catching fewer exceptions
We specifically don't want to catch BrokenPipeError; just list
file-related ones that we might expect to see if we hit bad
permissions, disk errors, or race conditions.
2021-10-16 01:26:14 -04:00
b8f3cac883 borg: update binary to fix upstream bug 6009 2021-10-16 01:23:14 -04:00
e57db3a8d7 notify: fix notify.sh to work with server side; adjust text 2021-10-16 01:11:56 -04:00
242f5dfb60 borg.sh: only try ssh keys, not password authentication 2021-10-15 23:33:15 -04:00
6b5daa74ad backup: catch all OSError exceptions while accessing files
We might see these if files change during the scan, for example.
2021-10-15 23:31:34 -04:00
4028d8fecc backup: print final results and run notification script on error 2021-10-15 23:28:00 -04:00
4d11ccaa61 backup: fix archive name
Was overly quoted from when this was a shell script
2021-10-15 23:27:39 -04:00
ae2a08b809 backup: capture borg output for later reporting 2021-10-15 23:27:20 -04:00
992f6c7202 backup: add bold option to log(); simplify logic 2021-10-15 23:25:35 -04:00
a6a3879597 backup: change some warnings into errors 2021-10-15 23:25:03 -04:00
2c841f0851 notify: add ssh key for running remote notifications; add notify.sh 2021-10-15 23:24:33 -04:00
4bb9c944bf setup: fix borg path in initial connection test 2021-10-15 23:24:03 -04:00
1638e6b875 prune: use new vars.sh 2021-10-15 23:23:38 -04:00
65e6cf0004 initial-setup: generate vars.sh instead of borg.sh; commit borg.sh
Put setup-time variables into a generated vars.sh, and put borg.sh
directly into the repo.
2021-10-15 23:23:29 -04:00

12
vars.sh Normal file
View File

@ -0,0 +1,12 @@
export BACKUP_USER=jim-backups
export BACKUP_HOST=backup.jim.sh
export BACKUP_REPO=borg/basis
export HOSTNAME=basis
export BORG_REPO="ssh://jim-backups@backup.jim.sh/./borg/basis"
export BORG_HOST_ID=basis.bacon@91300097352395
export BORG_PASSCOMMAND="cat /opt/borg/passphrase"
export BORG_DIR=/opt/borg
export SSH=/opt/borg/ssh
export BORG=/opt/borg/borg.sh
export BORG_BIN=/opt/borg/Borg.bin