#!/bin/bash COMPSERV_USER=peter COMPSERV_SERVER=compilerserver RSYNC_PARAMS="--rsh=ssh --recursive --progress" # Create large amount of files on the server ssh $COMPSERV_USER@$COMPSERV_SERVER 'mkdir -p ~/testdir; for ((i=0;i<500;i++)) ; do dd if=/dev/random of=~/testdir/file${i}.lst bs=1 count=5000; done' # Sync files to client rsync -vvvvvvvvvv $RSYNC_PARAMS $COMPSERV_USER@$COMPSERV_SERVER::$COMPSERV_USER/testdir ~/