nsbin/backupe-nach-$1
Nico Schottelius d3c6e29902 Initial commit
2006-07-20 09:54:37 +02:00

19 lines
347 B
Bash
Executable file

#!/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}"