#!/bin/bash

if [ -z "$1" ]; then
        echo usage: $0 ORACLE_SID
        exit
fi
sid=$1
rhost=$2

/usr/bin/rsync -ptr \
        --rsh=ssh \
        --rsync-path=/usr/bin/rsync \
        --delete \
        /dumps/${sid} ${rhost}:/dumps

