]> oss.titaniummirror.com Git - ovzbpc.git/blobdiff - bpcbackup
Better logging, better error reporting, fix defect in removing old backup
[ovzbpc.git] / bpcbackup
index ad4db0a8374f8c91a1dcea702e123ec156c81f32..d70d2285845bae52a5c76c3031f8be81b8d4b11a 100755 (executable)
--- a/bpcbackup
+++ b/bpcbackup
@@ -28,4 +28,9 @@ fi
 # has to be physically connected first, and may require authentication on mount
 # if the volume is encrypted.
 bpcdump
+ret=$?
 esata umount
+ret2=$?
+[ "$ret" != "0" ] && exit $ret
+[ "$ret2" != "0" ] && exit $ret2
+exit 0