By the way I've personally installed the script in a way that stands in time by creating a systemd file:
( Because it improves a log my day-to-day experience)
/etc/systemd/system/backup-4g.service :
[Unit]
Description=LTE backup Service
After=network.target
[Service]
Type=simple
ExecStart=/home/phablet/backup-ip.sh
Restart=on-failure
WorkingDirectory=/home/phablet/
[Install]
WantedBy=multi-user.target
and then
sudo systemctl enable backup-4g
So that it starts automatically at startup.
For this to work you need to have the script that I have posted above in /home/phablet/backup-ip.sh

