updated wrestic path

This commit is contained in:
2023-11-30 20:11:26 -06:00
parent b3b6d63545
commit 631e458e44
4 changed files with 4 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
mkdir -pv /home/akanealw/scripts mkdir -pv /home/akanealw/scripts
mkdir -pv /root/restic/restore mkdir -pv /root/restic/restore
# wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic # wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
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/bin --overwrite 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-local.toml wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic-local.toml
wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-local.sh wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-local.sh
sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml

View File

@@ -15,7 +15,7 @@ if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
mkdir -pv /home/akanealw/scripts mkdir -pv /home/akanealw/scripts
mkdir -pv /root/restic/restore mkdir -pv /root/restic/restore
# wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic # wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
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/bin --overwrite 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/.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 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/.config

View File

@@ -39,7 +39,7 @@ if [[ ! -f /home/akanealw/.config/wrestic/wrestic.toml ]]
mkdir -pv /home/akanealw/restic/restore mkdir -pv /home/akanealw/restic/restore
mkdir -pv /root/restic/restore mkdir -pv /root/restic/restore
# wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic # wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
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/bin --overwrite 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-sftp.toml wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic-sftp.toml
wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-sftp.sh wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/wrestic/wrestic-backup-to-truenas-sftp.sh
sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml

View File

@@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
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/bin --overwrite 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