replication shell script