autobackup

Automatically choose backup location and perform backups using rsync
git clone git://jacobedwards.org/autobackup
Log | Files | Refs | README | LICENSE

autobackup_send (347B)


      1 #!/bin/sh
      2 # Copyright 2023 Jacob R. Edwards <jacob@jacobedwards.org>
      3 # Licensed under OpenBSD's ISC license; see LICENSE
      4 #
      5 # Autobackup client.
      6 
      7 printenv DEBUG >/dev/null &&
      8 	set -x
      9 
     10 d="${1:?"usage: ${0##*/} destination [rsync-options ...]"}"
     11 shift
     12 rsync "$@" -aHu --del --rsync-path="/usr/local/bin/autobackup_recieve" /home/ "$d:$(hostname -s)"