From: Ralph Ronnquist Date: Thu, 14 Sep 2023 22:53:24 +0000 (+1000) Subject: Added a restore helper script X-Git-Tag: 0.1~11 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=38fb9c424fbc96b20471d78fa6ac5e835263c3bb;p=rrq%2Fbuckap.git Added a restore helper script --- diff --git a/restore.sh b/restore.sh new file mode 100755 index 0000000..92faab6 --- /dev/null +++ b/restore.sh @@ -0,0 +1,82 @@ +#!/bin/bash +# +# Support script for restoring individual directories and files +# + +CONFIG=/etc/duplicity-daily.conf +eval $(grep ^TARGET= $CONFIG) +eval $(grep ^OPTIONS= $CONFIG) +: ${RESTORE:=/restore} + +SRCS=( $(grep ^/ $CONFIG) ) +if [ -z "$SRCS" ] ; then + cat < $LIST + +echo + +# Restore pathname $1 +restore() { + local X + cat <