A backup script that writes to /mnt/backup while the drive is not mounted will happily fill the root disk instead. A one-line check avoids that.
mountpoint exits with 0 when the given directory is a mount point and with 32 when it is not. Add -q to keep it quiet and use only the exit code:
if ! mountpoint -q /mnt/backup; then
echo "backup drive not mounted" >&2
exit 1
fi
rsync -a /mnt/user/appdata/<app>/ /mnt/backup/appdata/
Without -q it prints a plain sentence. For example, mountpoint / answers / is a mountpoint. Exit code 1 means a bad invocation, a permission problem or a system error. A path that does not exist gives No such file or directory and exit code 1 in my test, so a typo in the path ends up as “not mounted” in the script above. Testing with ! treats all of these as failures, which is the safe way round for this use.
The man page has two related options. -d shows the major and minor numbers of the device mounted on the directory, and -x shows them for a block device you name.
It only tells you that something is mounted there. It does not say whether it is the device you expected. If the path is a bind mount, or a network share that has gone stale, the answer may not match what you hoped. When you want to check the source, findmnt shows more detail about what is mounted where.
Further reading: mountpoint(1) manual page