<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
+ <arg choice="opt">-- hook arguments</arg>
</cmdsynopsis>
<cmdsynopsis>
<command>lxc-copy</command>
<arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
+ <arg choice="opt">-- hook arguments</arg>
</cmdsynopsis>
<cmdsynopsis>
<command>lxc-copy</command>
</refsect1>
+ <refsect1>
+ <title><!-- Copy hook -->コピー時のフック</title>
+ <para>
+ <!--
+ If the container being copied has one or more
+ <filename>lxc.hook.clone</filename> specified, then the specified hooks
+ will be called for the new container. The first 3 arguments passed to the
+ clone hook will be the container name, a section ('lxc'), and the hook
+ type ('clone'). Extra arguments passed to <command>lxc-copy</command> will
+ be passed to the hook program starting at argument 4. The
+ <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
+ the path under which the container's root filesystem is mounted. The
+ configuration file pathname is stored in
+ <filename>LXC_CONFIG_FILE</filename>, the new container name in
+ <filename>LXC_NAME</filename>, the old container name in
+ <filename>LXC_SRC_NAME</filename>, and the path or device on which the
+ rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
+ -->
+ コピーされるコンテナに 1 つ以上の <filename>lxc.hook.clone</filename> の指定が存在する場合、指定されたフックは新しいコンテナに対して呼ばれます。
+ クローンフックに渡される最初の 3 つの引数は、コンテナ名、セクション ('lxc')、フックタイプ ('clone') となります。
+ <command>lxc-copy</command> に渡される追加の引数は、フックプログラムに渡される引数の 4 番目以降となります。
+ <filename>LXC_ROOTFS_MOUNT</filename> 環境変数には、コンテナの root ファイルシステムがマウントされるパスが与えられます。
+ 設定ファイルのパス名は <filename>LXC_CONFIG_FILE</filename> に、新しいコンテナ名は <filename>LXC_NAME</filename>、古いコンテナ名は <filename>LXC_SRC_NAME</filename> に、rootfs のあるパスまたはデバイスは <filename>LXC_ROOTFS_PATH</filename> に保存されます。
+ </para>
+ </refsect1>
+
&commonoptions;
&seealso;