From 672b64c5581963e2e2b504559c3edec69a018c61 Mon Sep 17 00:00:00 2001 From: akanealw Date: Wed, 11 Oct 2023 12:50:30 -0500 Subject: [PATCH] updated sftp wrestic install --- wrestic/install-wrestic-sftp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrestic/install-wrestic-sftp.sh b/wrestic/install-wrestic-sftp.sh index 07fd23a..4ea270b 100644 --- a/wrestic/install-wrestic-sftp.sh +++ b/wrestic/install-wrestic-sftp.sh @@ -39,8 +39,8 @@ if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]] mkdir -pv /home/akanealw/restic/restore mkdir -pv /root/restic/restore wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic - wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic.toml - wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas.sh + wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic-sftp.toml + wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-sftp.sh sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml sed -r 's/(resticbackups)(.*)/\1\L\2\E/g' /home/akanealw/.config/wrestic/wrestic.toml > /home/akanealw/.config/wrestic/wrestic2.toml mv /home/akanealw/.config/wrestic/wrestic.toml /home/akanealw/.config/wrestic/wresticbackup.toml