Update backup.sh

was missing a curly brace and some sanity checks .... mucho better now 

--timball