removed restic install
This commit is contained in:
@@ -8,8 +8,6 @@ fi
|
|||||||
|
|
||||||
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
||||||
then
|
then
|
||||||
apt update
|
|
||||||
apt-get install -y restic
|
|
||||||
mkdir -pv /home/akanealw/.config/wrestic
|
mkdir -pv /home/akanealw/.config/wrestic
|
||||||
mkdir -pv /home/akanealw/restic/restore
|
mkdir -pv /home/akanealw/restic/restore
|
||||||
mkdir -pv /home/akanealw/scripts
|
mkdir -pv /home/akanealw/scripts
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$EUID" -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "Please run as root"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
|
||||||
then
|
|
||||||
apk update
|
|
||||||
apk add restic
|
|
||||||
mkdir -pv /home/akanealw/.config/wrestic
|
|
||||||
mkdir -pv /home/akanealw/restic/restore
|
|
||||||
mkdir -pv /home/akanealw/scripts
|
|
||||||
mkdir -pv /root/restic/restore
|
|
||||||
curl -sL $(curl -s https://api.github.com/repos/alvaro17f/wrestic/releases/latest | grep browser_download_url | cut -d '"' -f 4) | sudo tar zxf - -C /usr/local/bin --overwrite
|
|
||||||
wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic-lxc.toml
|
|
||||||
wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-lxc.sh
|
|
||||||
chown -R akanealw:akanealw /home/akanealw/.config
|
|
||||||
chown -R akanealw:akanealw /home/akanealw/restic
|
|
||||||
chown -R akanealw:akanealw /home/akanealw/scripts
|
|
||||||
chmod +x /home/akanealw/scripts/wrestic-backup-to-truenas.sh
|
|
||||||
chmod +x /usr/local/bin/wrestic
|
|
||||||
else
|
|
||||||
echo "Wrestic is already configured."
|
|
||||||
fi
|
|
||||||
@@ -8,8 +8,6 @@ fi
|
|||||||
|
|
||||||
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
||||||
then
|
then
|
||||||
apt update
|
|
||||||
apt-get install -y restic
|
|
||||||
mkdir -pv /home/akanealw/.config/wrestic
|
mkdir -pv /home/akanealw/.config/wrestic
|
||||||
mkdir -pv /home/akanealw/restic/restore
|
mkdir -pv /home/akanealw/restic/restore
|
||||||
mkdir -pv /home/akanealw/scripts
|
mkdir -pv /home/akanealw/scripts
|
||||||
|
|||||||
@@ -33,8 +33,6 @@ fi
|
|||||||
|
|
||||||
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
|
||||||
then
|
then
|
||||||
apt update
|
|
||||||
apt-get install -y restic
|
|
||||||
mkdir -pv /home/akanealw/.config/wrestic
|
mkdir -pv /home/akanealw/.config/wrestic
|
||||||
mkdir -pv /home/akanealw/restic/restore
|
mkdir -pv /home/akanealw/restic/restore
|
||||||
mkdir -pv /root/restic/restore
|
mkdir -pv /root/restic/restore
|
||||||
|
|||||||
Reference in New Issue
Block a user