That’d would be why you get the error that the network connection is not available. I suspect you need to look at the service, and make sure that it’s set to start After the network is online.
Edit:
I don’t know if this’ll work, but you could try adding this to the .automount:
For each .timer file, a matching .service file exists (e.g. foo.timer and foo.service). The .timer file activates and controls the .service file. The .service does not require an [Install] section as it is the timer units that are enabled. If necessary, it is possible to control a differently-named unit using the Unit= option in the timer’s [Timer] section.
– systemd/Timers - ArchWiki
Because one is directly attached hardware (USB Dongle), while the other (NAS) is on the network
So you need to check if the service on the machine (in the network) is active or not …
It’s like checking if your own home’s window is open vs asking your neighbor if their window is open or not…
Just for the record and my curiosity - which backup program are you using?
It’s my own tool built for learning purposes.
Feel free to use it if you want.
I’m a rookie programmer so the code doesn’t look beautiful. But it does the job and doesn’t need attention.
This is a mirror type synchroniser. So it’s left to right.
I just developed two-way synchroniser which makes two exact copies. But it’s still work in progres. It lacks some functionalities. But it works if you want to try it.