Drops of glue between SSHFS, Borg, and cron
Go to file
2024-08-09 13:47:11 +02:00
DEBIAN Init 2024-08-07 22:44:55 +02:00
etc Add 'initialize' command, define 'backup' command 2024-08-09 13:46:40 +02:00
usr/sbin Add 'initialize' command, define 'backup' command 2024-08-09 13:46:40 +02:00
.gitignore Init 2024-08-07 22:44:55 +02:00
README.md Update README: correct naming scheme of .deb 2024-08-09 13:47:11 +02:00

tupper

Drops of glue between SSHFS, Borg and cron

Features

  • Auto-mounts specified SSHFS as required
  • Encrypted, deduplicated backups thanks to Borg
  • Backup of specified directories to SSHFS
  • Daily cron scheduler

Usage

Enter SSH credentials, host and destination directory in /etc/tupper.conf, as well as the directories to back up.

Then either run sudo tupper or wait for the daily cron scheduler to kick in.

Building

dpkg-deb --build . tupper_0.1_all.deb

TODO / Known pitfalls

  • The Borg backup destination (thus, the contents of the SSHFS directory) must be borg inited; tupper won't do that (and probably shouldn't anyway)
  • If tupper fails with timeout waiting for prompt, you may need to validate and accept the SSH host key: ssh-keyscan yournas.local | sudo tee --append /root/.ssh/known_hosts