Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am madcamel on github.
  • I am madcamel (https://keybase.io/madcamel) on keybase.
  • I have a public key ASBRpvJOeQRhLAEUopKMNNIQT77RLKDtCJv07syNF16Wuwo

To claim this, I am signing this object:

#!/usr/bin/perl
# This script does pull-style backups with restic for multiple hosts. It supports
# both filesystem and limited mysql/mariadb backups.
#
# It establishes a SSH connection to the remote host and creates a TCP port forward
# from the remote machine to the local machine. It runs rest-server in append-only
# mode on this port, and triggers a restic backup to the rest-server instance.
#
# This is a good system for backing up less-trusted hosts from a more-trusted backup
# server, perhaps behind a restrictive firewall. The hosts do not need access to