On Sun, 5 Nov 100, Graydon Dodson wrote:
The following somewhat crude perl from a backup script I wrote does what you want: (logging code removed) Hope this helps, it has worked for us for years.
I cheat a bit specifically for the snapshot creation/deletion checks... our backup server mounts the root of each Netapp it is responsible for, so it is very easy just to look in any .snapshot directory and do a "test -d" for the appropriate snapshot name. I'm hoping that the sshd on the Netapp can return meaningful exit codes so I can have a more generic method to check on command execution and not rely on parsing stdout.