How to auto-start Deja Dup backup when the external backup drive is mounted

I use an external drive to back up my files with Deja Dup, but I wanted it to start automatically when I mounted the drive. Here’s how I did it with a systemd service.