The tl;dr, how do I make Ubuntu Server 16 with no desktop GUI automatically mount a USB drive with a known drivelabel and UUID to an explicitly defined folder upon insertion?
I'm making a backup server where the production database server will backup to the backup server at /data/backup/OffsiteBackup. When the daily backup is finished, I want to copy the contents of /data/backup/OffsiteBackup/ to USB drives mounted on
/data/backup/OffsiteMon[A|B], /data/backup/OffsiteTue[A|B], /data/backup/OffsiteWed[A|B], /data/backup/OffsiteThu[A|B], /data/backup/OffsiteFri[A|B],
where 'A' and 'B' correspond to the two week retention period we have.
This server will be a headless unit accessible solely via SSH. I want minimal user interaction, including the mounting of the USB drives on Friday, Saturday, or Sunday for the following week's worth of offsite backups. In Lubuntu, if you plug a USB drive in, it's automatically mounted at /media/$USER/$DRIVENAME (or /media/$USER/$UUID if $DRIVENAME doesn't exist). After the drive is ejected, the folder is deleted. I don't need that because I have all ten folders created. The script which will copy the offsite backup to the USB drive will also unmount the flash drive, thereby making it so no one has to
umount the drive.
How do I make Ubuntu Server automatically mount a USB drive to a specific folder when it's plugged in? Is there a "preferences" or dictionary file of sorts where I can specify that a drive with UUID=ABCD-1234 be mounted at /data/backup/OffsiteMonA? I'd rather avoid making ten separate entries in /etc/fstab.