#!/bin/sh DEST=$1 RSYNC="/usr/bin/rsync -rltvz" if [ "$DEST" = "" ]; then echo You must supply a destination directory exit fi if [ ! -e $DEST ]; then echo Destination does not exist: $DEST exit fi echo Mirroring to $DEST $RSYNC --exclude '2.6.0-test*/' --exclude '*.sign' --exclude '*.gz' rsync://rsync.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/* $DEST/