nsbin/backupe-nach-$1

20 lines
347 B
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
#!/bin/sh
# Nico Schottelius
# Mi Nov 24 13:25:40 CET 2004
EXCLUDE="/cdrom /dev /floppy /proc /sys /tmp"
EXCLUDE_FILE=".exclude"
SOURCE=/
PREFIX="time nice -n 10"
[ $# -ne 1 ] && exit 23
DEST=$1
rm -f $EXCLUDE_FILE
for a in $EXCLUDE; do
echo $a >> $EXCLUDE_FILE
done
$PREFIX rsync -av -e ssh --exclude-from="$EXCLUDE_FILE" $SOURCE "${DEST}"