How do I convert arbitrary paths to systemd
unit file name format?
For example, how would I convert a path like /media/backup
to media-backup
so I could stop the automounter via:
systemctl stop media-backup.automount
The solution should escape special characters.