standby clone: always ensure directory is created with correct permissions

In Barman mode, if there is an existing, populated data directory, and
the "--force" option is provided, the entire directory was being deleted,
and later recreated as part of the rsync process, but with the default
permissions.

Fix this by recreating the data directory with the correct permissions
after deleting it.
This commit is contained in:
Ian Barwick
2019-04-09 10:51:36 +09:00
parent 77b9887d61
commit ef47589c6b
3 changed files with 28 additions and 0 deletions

View File

@@ -46,6 +46,14 @@
</para>
</listitem>
<listitem>
<para>
&repmgr;: when executing <link linkend="repmgr-standby-clone"><command>repmgr standby clone</command></link>
in <option>--dry-run</option> mode, ensure provision of the <option>--force</option> option
does not result in an existing data directory being modified in any way.
</para>
</listitem>
</itemizedlist>
</para>
</sect2>