19 lines
962 B
Bash
Executable File
19 lines
962 B
Bash
Executable File
#!/bin/bash
|
|
|
|
rm -r /home/akanealw/.config/wrestic > /dev/null 2>&1
|
|
rm -r /root/.config/wrestic > /dev/null 2>&1
|
|
rm -r /usr/local/bin/wrestic > /dev/null 2>&1
|
|
rm /home/akanealw/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1
|
|
rm /root/scripts/wrestic-backup-to-truenas.sh > /dev/null 2>&1
|
|
|
|
mkdir -p /root/scripts/restic > /dev/null 2>&1
|
|
rm /root/scripts/restic/* > /dev/null 2>&1
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/restic-lxc-backup.sh -P /root/scripts/restic
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/export-etc.sh -P /root/scripts/restic
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/export-home-akanealw.sh -P /root/scripts/restic
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/export-opt.sh -P /root/scripts/restic
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/export-root.sh -P /root/scripts/restic
|
|
wget -q http://192.168.1.50:81/restic/restic-lxc/restic-lxc-init.sh -P /root/scripts/restic
|
|
|
|
chmod +x /root/scripts/restic/*
|