#!/bin/sh
#  cptree src dst
#
# 	copy a directory tree (on the same machine)
# 	STAY ON ONE FILE SYSTEM: --one-file-system
#	this used to use -l; that means something different now.

if [ -z "$2" ]; then
    echo usage: $0 src dst
    echo "    " copy a tree quickly using tar -cl
    exit
fi
[! -e $2] || mkdir -p $2
(cd $1; tar c --exclude=lost+found --one-file-system -f - .) | (cd $2; tar xvpBf -)
