Hey I have a question for the #linux community. For background I'm trying to set up a nightly backup to NAS via cron, bash and rsync. But because I'm doing this from a laptop that's not always on this network, after I mount the drive I need to /check/ to see if it's mounted before I try to copy files.
Does anybody know how to do that check? Or should I just let rsync run and trust that it'll fail gracefully? (the NAS is presented as an SMB share if that helps)