added q to wget command

This commit is contained in:
2023-10-10 18:30:42 -05:00
parent e2f01eb6ed
commit 1756ff2483

View File

@@ -11,9 +11,9 @@ apt-get install -y restic
mkdir -pv /home/akanealw/.config/wrestic
mkdir -pv /home/akanealw/restic/restore
mkdir -pv /root/restic/restore
wget -O /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
wget -O /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic.toml
wget -O /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/restic/wrestic-backup-to-truenas.sh
wget -qO /usr/local/bin/wrestic http://192.168.1.50/files/wrestic/wrestic
wget -qO /home/akanealw/.config/wrestic/wrestic.toml http://192.168.1.50/files/wrestic/wrestic.toml
wget -qO /home/akanealw/scripts/wrestic-backup-to-truenas.sh http://192.168.1.50/scripts/restic/wrestic-backup-to-truenas.sh
sed -i "s/changemepls/$HOSTNAME/g" /home/akanealw/.config/wrestic/wrestic.toml
sed -r 's/(resticbackups)(.*)/\1\L\2\E/g' /home/akanealw/.config/wrestic/wrestic.toml > /home/akanealw/.config/wrestic/wrestic2.toml
mv /home/akanealw/.config/wrestic/wrestic.toml /home/akanealw/.config/wrestic/wresticbackup.toml