diff --git src/main/docbkx/ops_mgt.xml src/main/docbkx/ops_mgt.xml
index eb5c98c..946d74e 100644
--- src/main/docbkx/ops_mgt.xml
+++ src/main/docbkx/ops_mgt.xml
@@ -1702,6 +1702,38 @@ false
$ ./bin/hbase shell
hbase> snapshot 'myTable', 'myTableSnapshot-122112'
+
+ Take a Snapshot From a Bash Script
+ To take a snapshot from a Bash script, use HBase Shell's non-interactive mode
+ ( or ). If the snapshot is
+ successful, the command will return 0. Otherwise, it will return a non-zero value.
+ Following is a simple example script to take a snapshot and test whether it
+ succeeded.
+
+#!/bin/bash
+# Take a snapshot of the table passed as an argument
+
+# Parse the arguments
+if [ -z $1 ]||[$1 == '-h' ]; then
+ echo "Usage: $0 <table>"
+ echo " $0 -h"
+ exit 1
+fi
+
+export HBASE_PATH=/home/user/git/hbase
+export DATE=`date +"%Y%m%d"`
+echo "snapshot '$1', 'snapshot-$DATE'" | $HBASE_PATH/bin/hbase shell -n
+status=$?
+if [$status -ne 0]; then
+ echo "Snapshot failed: $status"
+fi
+exit $status
+
+ You could run such a script on a regular basis using a cron or
+ at job, or using another batch scheduler.
+ You can script other snapshot operations as well. For more information about shell
+ scripting with HBase, see .
+