testing local scripts

This commit is contained in:
2024-03-14 11:04:42 -05:00
parent afe4102a28
commit c7435b0dca
9 changed files with 71 additions and 4 deletions
@@ -0,0 +1,15 @@
#!/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-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
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/*