Jim Paris
9703c5fc72
bin: rebuild borg.x86_64 with staticx 0.13.8
1 year ago
Jim Paris
c68b867b50
Add notes about host ID
1 year ago
Jim Paris
7dea155f58
use python3 when getting UUID
1 year ago
Jim Paris
f6e8863128
backup: adjust email formatting
1 year ago
Jim Paris
342e2cd0e8
Update README
1 year ago
Jim Paris
f14b0d2d4d
backup.py: fix notification error
1 year ago
Jim Paris
b74f9c75a2
initial-setup: fix --update
1 year ago
Jim Paris
9b38c248d8
borg: add ARM binary for Pi; update scripts to use it
1 year ago
Jim Paris
46f9f98860
backup: show errors at top of email notification
1 year ago
Jim Paris
dc7d72b2da
initial-setup: make systemd units restart on failure
1 year ago
Jim Paris
cb12e09c46
backup: rework output to make notification emails easier to read
1 year ago
Jim Paris
1115d1f821
backup: rename pstr() helper to b2s()
The helper is just bytes->str conversion with errors=backslashreplace,
which we can use for more than just paths.
1 year ago
Jim Paris
e2f92ccb7a
readme: fix typo
1 year ago
Jim Paris
a15cb5b07d
all: remove concept of read-write key
We don't need a read-write key: we can just SSH directly to
jim-backups@backup.jim.sh instead and run commands thay way.
Remove read-write key and document it in the README.
Also add some tools to update the README variables on updates.
1 year ago
Jim Paris
51c5b5e9ca
backup: fix prune archive name
1 year ago
Jim Paris
ed8ea15aa7
backup: only prune archives that match default naming pattern
1 year ago
Jim Paris
481e01896b
backup: fix issue with ignoring "changed while we backed it up" warnings
1 year ago
Jim Paris
e85e08cace
backup: call prune after backup; add run_borg helper
Automatically prunes after backup, although this doesn't actually
free up space (because we're in append-only mode).
1 year ago
Jim Paris
4b7802ad5f
backup: flush stderr after all writes
1 year ago
Jim Paris
4a30b82e39
backup: replace simple max size with rule-based system
Now individual files or patterns can have their own maximum sizes.
1 year ago
Jim Paris
ac12b42cad
backup: rename force-include to unexclude
Force-include is a misnomer because it won't include files
that weren't considered at all (like files in an excluded subdir).
Instead, call it "unexclude" to make it slightly clearer that this
will just override the exclusions.
1 year ago
Jim Paris
97b9060344
make: add targets to help view log status
1 year ago
Jim Paris
16fe205715
backup: remove pathnames from progress output
It clutters up the output and isn't super useful
1 year ago
Jim Paris
1fb8645b27
build: make Borg.bin a static binary
This prevents it from e.g. needing a specific glibc version on the
client.
1 year ago
Jim Paris
b1748455a0
setup: add pipenv check
1 year ago
Jim Paris
d413ea3b82
setup: prevent pager in systemctl list-timers
1 year ago
Jim Paris
1932a76f72
prune: remove -v option to support old ssh-add
1 year ago
Jim Paris
81d430b56b
backup: print exceptions from reader thread
1 year ago
Jim Paris
2d89e530be
backup: split handling of log_message and progress_message
1 year ago
Jim Paris
3024cf2e69
backup: stop main thread if reader thread dies unexpectedly
_thread.interrupt_main will trigger KeyboardInterrupt in the main thread.
1 year ago
Jim Paris
a540f4336f
backup: fix nonlocal variable issue with errors
1 year ago
Jim Paris
643f41d7f7
backup: tweak types for python 3.7 compatibility
1 year ago
Jim Paris
1beda9d613
setup: pick host-dependent start time
1 year ago
Jim Paris
8d7282eac1
borg.sh: fix ssh option for read-write mode
1 year ago
Jim Paris
2b81094a32
backup: fix borg exit code handling for ret=0
1 year ago
Jim Paris
e7b0320c9f
backup: fix ignoring of harmless borg warnings
1 year ago
Jim Paris
a18b9ed6d0
backup: track errors/warnings from borg; add prefix to them
This also ignores the "file changed while we backed it up" error, because
that isn't important enough to warrant sending an email.
1 year ago
Jim Paris
756dbe1898
backup: fix mypy-detected errors
1 year ago
Jim Paris
ed1d79d400
makefile: reload systemd unit files after rebase
1 year ago
Jim Paris
2caceedea7
backup: show detailed progress from borg
1 year ago
Jim Paris
42edd0225d
setup: fix bitwarden entry name
1 year ago
Jim Paris
ad13bb343a
make: add helper to rebase local branches to incorporate upstream changes
1 year ago
Jim Paris
f2b47dcba2
backup: parse vars.sh and use hostname from that
1 year ago
Jim Paris
d1d561cb70
setup: allow hostname to be overridden
1 year ago
Jim Paris
6066188ef1
vars: remove duplicate host_id
1 year ago
Jim Paris
f70bffed37
misc: ignore .venv dir
1 year ago
Jim Paris
979dfd892f
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.
1 year ago
Jim Paris
ab6dce0c2c
borg: update binary to fix upstream bug 6009
1 year ago
Jim Paris
aff447c1b6
notify: fix notify.sh to work with server side; adjust text
1 year ago
Jim Paris
f7e9c3e232
borg.sh: only try ssh keys, not password authentication
1 year ago