nsbin/old/backupe-nach-$1
Nico Schottelius be74aa20a1 begin to cleanup home-sweet-bin
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-12-28 19:42:26 +01: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}"