From 42c0bd6f39d37844de03f926c399ad63159565cc Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 11:13:25 -0500 Subject: [PATCH] testing wget output directory --- restic/restic-sftp/install-restic-sftp.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/restic/restic-sftp/install-restic-sftp.sh b/restic/restic-sftp/install-restic-sftp.sh index db6c77f..4b25595 100644 --- a/restic/restic-sftp/install-restic-sftp.sh +++ b/restic/restic-sftp/install-restic-sftp.sh @@ -2,15 +2,13 @@ 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-sftp/restic-sftp-backup.sh -wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-etc.sh -wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-home-akanealw.sh -wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-opt.sh -wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-root.sh -wget -q http://192.168.1.50/scripts/restic/restic-sftp/restic-sftp-init.sh +wget -q http://192.168.1.50/scripts/restic/restic-sftp/restic-sftp-backup.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-etc.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-home-akanealw.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-opt.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-sftp/export-root.sh -P /root/scripts/restic +wget -q http://192.168.1.50/scripts/restic/restic-sftp/restic-sftp-init.sh -P /root/scripts/restic -mv /root/restic-sftp-* /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/*