#!/bin/sh echo "$SSH_ORIGINAL_COMMAND" >>./rsync_cmd.log case "$SSH_ORIGINAL_COMMAND" in *\&*) echo "Rejected" ;; *\(*) echo "Rejected" ;; *\{*) echo "Rejected" ;; *\;*) echo "Rejected" ;; *\<*) echo "Rejected" ;; *\`*) echo "Rejected" ;; *\|*) echo "Rejected" ;; rsync\ --server*) echo "Launching database dump....." >>./rsync_cmd.log sh ~/.backups_cmd/mysql_dump.sh $SSH_ORIGINAL_COMMAND ;; *) echo "Rejected" ;; esac