added rest-server option
This commit is contained in:
13
restic/restic-rest-server/install-restic-rest-server.sh
Executable file
13
restic/restic-rest-server/install-restic-rest-server.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
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-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
|
||||
wget -q http://192.168.1.50/scripts/restic/restic-rest-server/export-opt.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
|
||||
|
||||
chmod +x /root/scripts/restic/*
|
||||
sed -i "s/changemepls/$(cat /etc/hostname | tr '[:upper:]' '[:lower:]')/g" /root/scripts/restic/*
|
||||
Reference in New Issue
Block a user