rsync from EMCC standby OMS nodes

From the OMS secondary 1:

export LVMSOURCE=<IP>

echo "Synching /u01"
rsync -vat --stats --checksum --delete --delete-excluded --exclude '*.log' --exclude '*.trc' --log-file=$HOME/admin/rsync.log --progress ${LVMSOURCE}:/u01/ /u01

echo "Synching /library"
rsync -vat --stats --delete --checksum --delete ${LVMSOURCE}:/library/ /library

echo "Synching /bip"
rsync -vat --stats --delete --checksum --delete ${LVMSOURCE}:/bip/ /bip

 

From the OMS secondary 2:

export LVMSOURCE=<IP>

echo "Synching /u01"
rsync -vat --stats --checksum --delete --delete-excluded --exclude '*.log' --exclude '*.trc' --log-file=$HOME/admin/rsync.log --progress ${LVMSOURCE}:/u01/ /u01

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s