| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
| |
ConnectTimeout merely specifies the TCP timeout, what we really want is
ServerAliceInterval, which makes the client send a null packet every X
seconds.
|
|
|
|
|
|
|
|
|
| |
Previously, a archive would get the timestamp of the time it was
uploaded, instead of the time when the snapshot was created.
This is problematic, since archives are pruned by this timestamp,
meaning if multiple archives are uploaded together most of them would be
pruned immediately after.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Instead of trying to execute borg, which would give us a false positive
if borg itself isn't working on the remote, just connect to the server
without executing a command.
We check for 255 because `man 1 ssh` states the following:
ssh exits with the exit status of the remote command or with 255 if
an error occured.
|
| |
|
|
|
|
|
|
|
|
| |
Since borg-prune only keeps the last snapshot of each day with
--keep-daily, it's possible that a file that was accidentally deleted is
only kept for 24h (if the machine is running) before it's purged from
backups. Increase to 72h to give the user a better chance of noticing
this in time.
|
| |
|
| |
|
|
|
|
|
|
| |
Networkmanager isn't really all that reliable, and we actually don't
want to depend on it anyway. So trying to connect via ssh is the better
thing to do.
|
| |
|
| |
|
| |
|
| |
|
|
This implements fully automated, hourly backups of my /home via
borgbackup, btrfs and systemd timers.
Note that `setup_borgbackup`, a related function that is part of my
dotfiles, is needed to setup backups for the first time, as well as a
call to `borg init` with the proper environment variables.
|