<div dir="ltr"><div><div><div><div>Hi,<br><br></div>frstly I want to say &quot;Good job, 
your technology is really good, thank you.&quot; and secondly &quot;Sorry for my 
bad english, I do my best.&quot;<br><br></div><div>Ok, so what&#39;s my problem:<br><br></div>I
 created replication model for my application (1 server with pgpool2 
instance and 2 servers like host0 and host1). Everything is ok except 
online_recovery part which I really have problem to understand.<br><br></div><div>For now I have 3 empty scripts so adding node works, but there is no sychronization of DBs:<br></div><div>basebackup<br>pgpool_recovery_pitr<br>pgpool_remote_start<br></div><div><br></div><div><br></div>There is a sample of basebackup script:<br><pre>#! /bin/sh <br>DATA=$1 <br>RECOVERY_TARGET=$2 <br>RECOVERY_DATA=$3 <br>psql -c &quot;select pg_start_backup(&#39;pgpool-recovery&#39;)&quot; <br>postgres echo &quot;restore_command = &#39;scp $HOSTNAME:/data/archive_log/%f %p&#39;&quot; &gt; /data/recovery.conf <br>tar -C /data -zcf pgsql.tar.gz pgsql <br>psql -c &#39;select pg_stop_backup()&#39; postgres <br>scp pgsql.tar.gz $RECOVERY_TARGET:$RECOVERY_DATA<br><br></pre>I really need some advices there, because can&#39;t understand it.<br><br>1] there is something like /data/ so its $DATA or its other data? <br>2] there is tar on pgsql in data directory, but i have no pgsql directory there<br></div><div>3] do you have some working example? not only common sample? <br></div><div>4] very similar problem I have with other two scripts<br></div><div><br></div><div>Last 2 days I spent many hours by trying to understand this online recovery mechanism, but<br></div><div>my karma is probably too low.<br><br></div><div>Thank you for any advice,<br></div><div>Michal Stava,<br></div>CZECH REPUBLIC</div>