Bash shell script for WAL archiving over ssh to remote host when doing replication with Postgresql