testing
This commit is contained in:
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
mkdir -p /root/scripts/restic > /dev/null 2>&1
|
mkdir -p /root/scripts/restic > /dev/null 2>&1
|
||||||
mkdir -p /root/scripts/restic/older-scripts > /dev/null 2>&1
|
mkdir -p /root/scripts/restic/older-scripts > /dev/null 2>&1
|
||||||
mv /root/scripts/restic/export*.sh older-scripts/ > /dev/null 2>&1
|
mv /root/scripts/restic/export*.sh /root/scripts/restic/older-scripts/ > /dev/null 2>&1
|
||||||
mv /root/scripts/restic/restic*.sh older-scripts/ > /dev/null 2>&1
|
mv /root/scripts/restic/restic*.sh /root/scripts/restic/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/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-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
|
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-home-akanealw.sh -P /root/scripts/restic
|
||||||
@@ -11,5 +11,5 @@ wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-opt.sh -P /
|
|||||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-root.sh -P /root/scripts/restic
|
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-root.sh -P /root/scripts/restic
|
||||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/restic-rest-server-init.sh -P /root/scripts/restic
|
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/restic-rest-server-init.sh -P /root/scripts/restic
|
||||||
|
|
||||||
chmod +x /root/scripts/restic/*
|
chmod +x /root/scripts/restic/*.sh
|
||||||
sed -i "s/changemepls/$(cat /etc/hostname | tr '[:upper:]' '[:lower:]')/g" /root/scripts/restic/*.sh
|
sed -i "s/changemepls/$(cat /etc/hostname | tr '[:upper:]' '[:lower:]')/g" /root/scripts/restic/*.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user