A synced copy of data doesn’t protect against accidental file deletions… that is why RAID isn’t a backup, that is why snapRAID isn’t a backup, that is why syncthing is not a backup, that is why any kind of synced copy is not a backup. Let me know if you’re still struggling with this VERY basic concept… that has had it’s own little phrase parroted for decades, “RAID is not a backup.”
I setup Tasker to do it before there was any other options but now there are apps that will handle this. I’ve not tried them because my Tasker script works perfectly but I’ve noticed this one browsing f-droid and it looks appealing: WG Auto Connect - https://f-droid.org/en/packages/de.marionoll.wgautoconnect/