From e5dd9b3e1663687a68bdd2175041ffa3056a91f9 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 11:12:47 -0500 Subject: [PATCH] test wget output directory --- restic/restic-local/install-restic-local.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/restic/restic-local/install-restic-local.sh b/restic/restic-local/install-restic-local.sh index 9fb36d0..233b7ae 100644 --- a/restic/restic-local/install-restic-local.sh +++ b/restic/restic-local/install-restic-local.sh @@ -2,14 +2,12 @@ mkdir -p /root/scripts/restic > /dev/null 2>&1 rm /root/scripts/restic/* > /dev/null 2>&1 -wget -q http://192.168.1.50/scripts/restic/restic-local/restic-local-backup.sh -wget -q http://192.168.1.50/scripts/restic/restic-local/export-etc.sh -wget -q http://192.168.1.50/scripts/restic/restic-local/export-home-akanealw.sh -wget -q http://192.168.1.50/scripts/restic/restic-local/export-opt.sh -wget -q http://192.168.1.50/scripts/restic/restic-local/export-root.sh -wget -q http://192.168.1.50/scripts/restic/restic-local/restic-local-init.sh +wget -q http://192.168.1.50/scripts/restic/restic-local/restic-local-backup.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-local/export-etc.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-local/export-home-akanealw.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-local/export-opt.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-local/export-root.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-local/restic-local-init.sh -P /root/scripts/restic -mv /root/restic-local-* /root/scripts/restic -mv /root/export-* /root/scripts/restic chmod +x /root/scripts/restic/* sed -i "s/changemepls/$(cat /etc/hostname | tr '[:upper:]' '[:lower:]')/g" /root/scripts/restic/*