Changing the run time for "A stop job is running..." (systemd)

I’ve configured systemd to run a script on shutdown, which backs up my files to an external disk. Nothing flash, just a series of rsyncs. It all works fine. If I press the escape key to display the shutdown messages, I see “A stop job is running for backup my stuff to usb” and it counts down 90 seconds. If the backup completes before 90 seconds, all well and good. However, if the backup hasn’t completed in 90 seconds, then the system kills off the backup and shuts down.

Does anybody know where this 90 seconds is configured? Ideally I’d like the system to wait until the backup finishes before the shutdown proceeds, but failing that increasing the runtime would do.

This is the systemd config for my backup


[Unit]
 Description=backup my stuff to usb
 DefaultDependencies=no
 Before=shutdown.target reboot.target halt.target
 RequiresMountsFor=/data1 /home /usr/local /spare1 /spare2

[Service] Type=oneshot 
ExecStart=/bin/true 
ExecStop=/usr/local/bin/usbdisk_backup 
RemainAfterExit=true  

[Install] WantedBy=multi-user.target

Thanks in advance to you clever people!

This would be TimeoutStopSec and JobTimeoutSec. The former to prevent systemd from killing ongoing backup, the latter to make it wait until backup is finished (otherwise it simply gives up and continues with shutdown processing).

You Sir are the man!

Thank you very much for your kind assistance.