autobackup

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

autobackup_log (381B)


      1 #!/bin/sh
      2 # Copyright 2023 Jacob R. Edwards <jacob@jacobedwards.org>
      3 # Licensed under OpenBSD's ISC license; see LICENSE
      4 #
      5 # Log completed mirrors (used by autobackup_recieve).
      6 
      7 printenv DEBUG >/dev/null &&
      8 	set -x
      9 
     10 if test $# -ne 3
     11 then
     12 	echo 'usage: logmirror host base status' 1>&2
     13 	exit 1
     14 fi
     15 
     16 host="$1"
     17 base="$2"
     18 status="$3"
     19 date "+$host @ %F [$status]" >> "$base"/mirrors/log