Is there a way to check for a mounted volume? If its not mounted, proceed to mount it?
I have a script that connects to synology NAS and it mounts a sparsebundle to /Volumes Time machine then sets that sparsebundle as a backup destination.
I noticed that sometimes i get an error that says the backup will start when the disk is ready.
I have to removed the disk as a time machine back and rerun the script.
Maybe theres a way to check if the disk is mounted and if it isn't remount it? and startbackup again.
