On Wednesday 01 November 2006 04:21, Neil Stockbridge wrote: > concur concurrently. here's another example of an rsync script
:) > [ > #!/bin/sh > > BACKUP_TO=$YOURSERVER:$PATH_ON_YOURSERVER > THIS_HOST=`hostname` > > OPTS= > OPTS="$OPTS --archive" > OPTS="$OPTS --delete" > OPTS="$OPTS --delete-excluded" > OPTS="$OPTS --hard-links" > OPTS="$OPTS --temp-dir /tmp" > OPTS="$OPTS --compress" Don't use this ^^^ option on a CPU bound host, they don't like it. Actually, if it's transferring over a LAN then there's not much point using compression at all. I was trying to figure out why my poor little mini-ITX server was only transferring at 850kB/s, after I found and removed the -z option it transferred at 8.5MB/s. > OPTS="$OPTS --bwlimit=4" > > OPTS="$OPTS --exclude=/dev/" > OPTS="$OPTS --exclude=/mnt/" > OPTS="$OPTS --exclude=/proc/" > OPTS="$OPTS --exclude=/sys/" > OPTS="$OPTS --exclude=/tmp/" > OPTS="$OPTS --exclude=/var/" > > rsync $OPTS $* / $BACKUP_TO/$THIS_HOST > ] hads -- http://nicegear.co.nz New Zealand's VoIP supplier
