Hey there, I thought I would try a rather simple setup for the beginning. Sadly fail quite early :-(
What I try is, to run a cronjob every night, which sets up an OpenVPN tunnel to a remote machine and then starts the backup script.
What works:
sudo openvpn --config /home/molt.ovpn
and then in another window:
ping 10.8.0.1
What does not work:
sudo openvpn --config /home/molt.ovpn --up /home/scripts/backup-worker.sh
I also tried --route-up
with backup-worker.sh:
ping -c 1 -W 120 10.8.0.1
What's going wrong?
I am on
Ubuntu 18.04.5 LTS (Bionic Beaver)
OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019
Any help really appreciated, being stuck there since weeks o_O