From bb4dfc21a39f7a84953e05b730c9a5bd1209c190 Mon Sep 17 00:00:00 2001 From: akanealw Date: Sat, 25 May 2024 13:34:49 -0500 Subject: [PATCH] added lines to backup old scripts --- restic/restic-rest-server/install-restic-rest-server.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/restic/restic-rest-server/install-restic-rest-server.sh b/restic/restic-rest-server/install-restic-rest-server.sh index 23f894e..b340d9b 100755 --- a/restic/restic-rest-server/install-restic-rest-server.sh +++ b/restic/restic-rest-server/install-restic-rest-server.sh @@ -1,7 +1,9 @@ #!/bin/bash mkdir -p /root/scripts/restic > /dev/null 2>&1 -rm /root/scripts/restic/* > /dev/null 2>&1 +mkdir -p /root/scritps/restic/older-scripts > /dev/null 2>&1 +mv /root/scripts/restic/export*.sh older-scripts/ > /dev/null 2>&1 +mv /root/scripts/restic/restic*.sh older-scripts/ > /dev/null 2>&1 wget -q http://192.168.1.50/scripts/restic/restic-rest-server/restic-rest-server-backup.sh -P /root/scripts/restic wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-etc.sh -P /root/scripts/restic wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-home-akanealw.sh -P /root/scripts/restic