:	'(c) Copyright	Empress Software Inc.	1983, 2000'

USAGE="*** Usage ***  $0  archive-file/dev database [remote-list]"
case $# in
 0|1)
	echo "$USAGE"
	exit 1
	;;
esac

. $EMPRESSPATH/config/options

case $MSSYS_PLATFORM in
 SYS_OS_UNIX_FREEBSD)
	# FreeBSD tar is bsdtar. We prefer to use gnu tar
	PATH="$EMPRESSPATH/common/gnu:$PATH"
	export PATH
	;;
esac

GNUTAR=`tar --version 2>&1`

# GNU tar remove the leading / from absolute path name
# if option 'P' is not used
case "$GNUTAR" in
  *GNU*)	OPTIONS="cfbP" ;;
  *)		OPTIONS="cfb" ;;
esac

ARCH=$1
shift
exec tar $OPTIONS $ARCH 20 $*
