From c13c697dd820feaa399ad0cbcc092232bca736ca Mon Sep 17 00:00:00 2001 From: akanealw Date: Tue, 10 Oct 2023 12:40:24 -0500 Subject: [PATCH] added wrestic files for testing --- debian/debian-configure-wrestic.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/debian-configure-wrestic.sh diff --git a/debian/debian-configure-wrestic.sh b/debian/debian-configure-wrestic.sh new file mode 100644 index 0000000..184544c --- /dev/null +++ b/debian/debian-configure-wrestic.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then + echo "Please run as root" + exit +fi + +mkdir /home/akanealw/.config/wrestic +mkdir /home/akanealw/restic/restore +chown -R akanealw:akanealw /home/akanealw/.config +chown -R akanealw:akanealw /home/akanealw/restic +mkdir /root/restic/restore +wget -O /usr/sbin/local/wrestic +wget -O /home/akanealw/.config/wrestic/wrestic.toml