b16c4d7330
Support recovery by setting up an existing repo
2024-07-01 14:24:28 -04:00
59ceff6d1a
Update Pipfile.lock for newer Cython compatibility
2023-11-03 13:52:32 -04:00
9703c5fc72
bin: rebuild borg.x86_64 with staticx 0.13.8
2022-09-17 11:55:44 -04:00
c68b867b50
Add notes about host ID
2021-11-16 10:11:08 -05:00
7dea155f58
use python3 when getting UUID
2021-11-16 09:55:58 -05:00
f6e8863128
backup: adjust email formatting
2021-10-26 21:37:53 -04:00
342e2cd0e8
Update README
2021-10-26 16:03:52 -04:00
f14b0d2d4d
backup.py: fix notification error
2021-10-26 16:00:46 -04:00
b74f9c75a2
initial-setup: fix --update
2021-10-26 15:55:32 -04:00
9b38c248d8
borg: add ARM binary for Pi; update scripts to use it
2021-10-26 15:50:08 -04:00
46f9f98860
backup: show errors at top of email notification
2021-10-26 13:24:39 -04:00
dc7d72b2da
initial-setup: make systemd units restart on failure
2021-10-26 13:24:28 -04:00
cb12e09c46
backup: rework output to make notification emails easier to read
2021-10-26 13:20:21 -04:00
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.
2021-10-26 12:54:41 -04:00
e2f92ccb7a
readme: fix typo
2021-10-19 14:48:28 -04:00
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.
2021-10-19 14:46:34 -04:00
51c5b5e9ca
backup: fix prune archive name
2021-10-19 12:28:20 -04:00
ed8ea15aa7
backup: only prune archives that match default naming pattern
2021-10-19 12:18:46 -04:00
481e01896b
backup: fix issue with ignoring "changed while we backed it up" warnings
2021-10-19 12:14:42 -04:00
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).
2021-10-19 11:16:17 -04:00
4b7802ad5f
backup: flush stderr after all writes
2021-10-18 19:35:39 -04:00
4a30b82e39
backup: replace simple max size with rule-based system
...
Now individual files or patterns can have their own maximum sizes.
2021-10-18 17:43:33 -04:00
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.
2021-10-18 16:25:23 -04:00
97b9060344
make: add targets to help view log status
2021-10-18 15:13:10 -04:00
16fe205715
backup: remove pathnames from progress output
...
It clutters up the output and isn't super useful
2021-10-18 15:03:32 -04:00
1fb8645b27
build: make Borg.bin a static binary
...
This prevents it from e.g. needing a specific glibc version on the
client.
2021-10-17 21:31:16 -04:00
b1748455a0
setup: add pipenv check
2021-10-17 21:16:52 -04:00
d413ea3b82
setup: prevent pager in systemctl list-timers
2021-10-17 21:03:15 -04:00
1932a76f72
prune: remove -v option to support old ssh-add
2021-10-17 20:05:47 -04:00
81d430b56b
backup: print exceptions from reader thread
2021-10-17 20:02:46 -04:00
2d89e530be
backup: split handling of log_message and progress_message
2021-10-17 20:01:55 -04:00
3024cf2e69
backup: stop main thread if reader thread dies unexpectedly
...
_thread.interrupt_main will trigger KeyboardInterrupt in the main thread.
2021-10-17 20:00:55 -04:00
a540f4336f
backup: fix nonlocal variable issue with errors
2021-10-17 19:31:56 -04:00
643f41d7f7
backup: tweak types for python 3.7 compatibility
2021-10-17 19:31:36 -04:00
1beda9d613
setup: pick host-dependent start time
2021-10-17 09:26:41 -04:00
8d7282eac1
borg.sh: fix ssh option for read-write mode
2021-10-17 08:56:53 -04:00
2b81094a32
backup: fix borg exit code handling for ret=0
2021-10-17 01:05:03 -04:00
e7b0320c9f
backup: fix ignoring of harmless borg warnings
2021-10-17 00:55:49 -04:00
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.
2021-10-17 00:16:43 -04:00
756dbe1898
backup: fix mypy-detected errors
2021-10-17 00:14:14 -04:00
ed1d79d400
makefile: reload systemd unit files after rebase
2021-10-16 23:47:34 -04:00
2caceedea7
backup: show detailed progress from borg
2021-10-16 23:40:36 -04:00
42edd0225d
setup: fix bitwarden entry name
2021-10-16 19:21:09 -04:00
ad13bb343a
make: add helper to rebase local branches to incorporate upstream changes
2021-10-16 18:52:34 -04:00
f2b47dcba2
backup: parse vars.sh and use hostname from that
2021-10-16 18:52:34 -04:00
d1d561cb70
setup: allow hostname to be overridden
2021-10-16 18:48:43 -04:00
6066188ef1
vars: remove duplicate host_id
2021-10-16 09:45:50 -04:00
f70bffed37
misc: ignore .venv dir
2021-10-16 09:37:04 -04:00
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.
2021-10-16 09:37:04 -04:00
ab6dce0c2c
borg: update binary to fix upstream bug 6009
2021-10-16 09:37:04 -04:00