#!/bin/ksh -u
# Example wrapper script for WriteRsyncBackupToTape
# Author: Alain Williams, <addw@phcomp.co.uk> August 2007
# Copyright abandoned - do with this as you will.
# SCCS: @(#)writetape	1.2 08/25/07 19:28:00

# For this to run - you need to have put something appropriate into /etc/sudoers.

# Run via SUDO if we are not root:
if [[ -w / ]]
then	WriteRsyncBackupToTape -m 'server archive' -o
else	sudo /usr/local/bin/WriteRsyncBackupToTape -m 'server archive' -o
fi

# end
