#!/bin/bash USER=$(db configuration getprop wpkg RsyncUser || echo $(db configuration get DomainName)) PASS=$(db configuration getprop wpkg RsyncPassword || echo secret) SERVER=$(db configuration getprop wpkg RsyncServer || echo not.set) RSYNC_PASSWORD=$PASS /usr/bin/rsync -rtPz $USER@$SERVER /home/e-smith/files/shares/wpkg/files/