]> git.proxmox.com Git - mirror_lxc.git/blame - doc/ko/lxc-copy.sgml.in
Merge pull request #936 from overlayfs/btrfs_recursive_destroy
[mirror_lxc.git] / doc / ko / lxc-copy.sgml.in
CommitLineData
b035f792
SY
1<!--
2
3lxc: linux Container library
4
5(C) Copyright Canonical Inc. 2007, 2008
6
7Authors:
8Christian Brauner <christian.brauner at mailbox.org>
9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
24Translated into Korean
25by Sungbae Yoo <sungbae.yoo at samsung.com>
26
27-->
28
29<!DOCTYPE refentry PUBLIC @docdtd@ [
30
31<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
32<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
33]>
34
35<refentry>
36
37 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
38
39 <refmeta>
40 <refentrytitle>lxc-copy</refentrytitle>
41 <manvolnum>1</manvolnum>
42 </refmeta>
43
44 <refnamediv>
45 <refname>lxc-copy</refname>
46
47 <refpurpose>
48 <!--
49 copy an existing container.
50 -->
51 존재하는 컨테이너 복사
52 </refpurpose>
53 </refnamediv>
54
55 <refsynopsisdiv>
56 <cmdsynopsis>
57 <command>lxc-copy</command>
58 <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
59 <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
60 <arg choice="req">-N, --newname <replaceable>newname</replaceable></arg>
61 <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
62 <arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg>
63 <arg choice="opt">-s, --snapshot</arg>
64 <arg choice="opt">-K, --keepdata</arg>
65 <arg choice="opt">-M, --keepmac</arg>
66 <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
273b3837 67 <arg choice="opt">-- hook arguments</arg>
b035f792
SY
68 </cmdsynopsis>
69 <cmdsynopsis>
70 <command>lxc-copy</command>
71 <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
72 <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
73 <arg choice="opt">-N, --newname <replaceable>newname</replaceable></arg>
74 <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
75 <arg choice="req">-e, --ephemeral</arg>
76 <arg choice="opt">-B, --backingstorage <replaceable>backingstorage</replaceable></arg>
77 <arg choice="opt">-s, --snapshot</arg>
78 <arg choice="opt">-K, --keepdata</arg>
79 <arg choice="opt">-M, --keepmac</arg>
80 <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
273b3837 81 <arg choice="opt">-- hook arguments</arg>
b035f792
SY
82 </cmdsynopsis>
83 <cmdsynopsis>
84 <command>lxc-copy</command>
85 <arg choice="req">-n, --name <replaceable>name</replaceable></arg>
86 <arg choice="opt">-P, --lxcpath <replaceable>path</replaceable></arg>
87 <arg choice="req">-N, --newname <replaceable>newname</replaceable></arg>
88 <arg choice="opt">-p, --newpath <replaceable>newpath</replaceable></arg>
89 <arg choice="req">-R, --rename</arg>
90 </cmdsynopsis>
91 </refsynopsisdiv>
92
93 <refsect1>
94 <title><!-- Description -->설명</title>
95
96 <para>
97 <!--
98 <command>lxc-copy</command> creates and optionally starts (ephemeral or
99 non-ephemeral) copies of existing containers. It replaces
100 <command>lxc-clone</command> and <command>lxc-start-ephemeral</command>.
101 -->
102 <command>lxc-copy</command>는 존재하는 컨테이너의 (임시적 또는 영구적) 복사본을 생성하고, 옵션에 따라 시작하기도 한다. <command>lxc-clone</command>와 <command>lxc-start-ephemeral</command>를 대체한다.
103 </para>
104 <para>
105 <!--
106 <command>lxc-copy</command> creates copies of existing containers. Copies
107 can be complete clones of the original container. In this case the whole
108 root filesystem of the container is simply copied to the new container. Or
109 they can be snapshots, i.e. small copy-on-write copies of the original
110 container. In this case the specified backing storage for the copy must
111 support snapshots. This currently includes aufs, btrfs, lvm (lvm devices
112 do not support snapshots of snapshots.), overlay, and zfs.
113 -->
114 <command>lxc-copy</command>는 존재하는 컨테이너의 복사본을 생성한다. 복사본은 원본 컨테이너를 말그대로 복사한 것일 수 있다. 이 경우 컨테이너의 전체 루트 파일시스템은 단순히 새로운 컨테이너로 복사된다.
115 또는, 원본 컨테이너를 copy-on-write한 것과 같이 스냅샷이 될 수 있다. 이 경우 복사본을 위해 지정한 저장소는 스냅샷을 지원하여야 한다. 이러한 저장소에는 현재 aufs, btrfs, lvm (lvm 장치는 스냅샷의 스냅샷은 지원하지 않음), overlay, zfs가 있다.
116 </para>
117
118 <para>
119 <!--
120 The copy's backing storage will be of the same type as the original
121 container. aufs or overlayfs snapshots of directory backed containers are
122 exempted from this rule.
123 -->
124 복사본의 저장소는 원본 컨테이너와 같은 종류가 된다. 단, aufs나 디렉토리로 구성된 컨테이너의 overayfs 스냅샷은 예외이다.
125 </para>
126
127 <para>
128 <!--
129 When the <replaceable>-e</replaceable> flag is specified an ephemeral
130 snapshot of the original container is created and started. Ephemeral
131 containers will have <command>lxc.ephemeral = 1</command> set in their
132 config file and will be destroyed on shutdown. When
133 <replaceable>-e</replaceable> is used in combination with
134 <replaceable>-D</replaceable> a non-ephemeral snapshot of the original
135 container is created and started.
136 -->
137 <replaceable>-e</replaceable>가 지정되면, 원본 컨테이너의 임시 스냅샷이 생성되고 시작된다. 임시 컨테이너는 자신의 설정파일 안에 <command>lxc.ephemeral = 1</command>를 가지게 되며, 종료시에 제거된다. <replaceable>-e</replaceable>와 함께 <replaceable>-D</replaceable>를 같이 지정하면 원본 컨테이너의 영구적인 스냅샷이 생성되고 실행된다.
138 </para>
139
140 <para>
141 <!--
142 When <replaceable>-e</replaceable> is specified and no newname is given via
143 <replaceable>-N</replaceable> a random name for the snapshot will be chosen.
144 -->
145 <replaceable>-e</replaceable>는 지정하고 <replaceable>-N</replaceable>으로 새이름을 지정하지 않으면, 무작위로 이름을 정한다.
146 </para>
147
148 <para>
149 <!--
150 Containers created and started with <replaceable>-e</replaceable> can have
151 custom mounts. These are specified with the <replaceable>-m</replaceable>
152 flag. Currently three types of mounts are supported:
153 <replaceable>aufs</replaceable>, <replaceable>bind</replaceable>, and
154 <replaceable>overlay</replaceable>. Mount types are specified as suboptions
155 to the <replaceable>-m</replaceable> flag and can be specified multiple
156 times separated by commas. <replaceable>aufs</replaceable> and
157 <replaceable>overlay</replaceable> mounts are currently specified in the
158 format <replaceable>-m overlay=/src:/dest</replaceable>. When no
159 destination <replaceable>dest</replaceable> is specified
160 <replaceable>dest</replaceable> will be identical to
161 <replaceable>src</replaceable>. Read-only <replaceable>bind</replaceable>
162 mounts are specified <replaceable>-m bind=/src:/dest:ro</replaceable> and
163 read-write <replaceable>bind</replaceable> mounts <replaceable>-m
164 bind=/src:/dest:rw</replaceable>. Read-write <replaceable>bind</replaceable>
165 mounts are the default and <replaceable>rw</replaceable> can be missing when
166 a read-write mount is wanted. When <replaceable>dest</replaceable> is
167 missing <replaceable>dest</replaceable> will be identical to
168 <replaceable>src</replaceable>. An example for multiple mounts would be
169 <replaceable>-m
170 bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable>.
171 -->
172 <replaceable>-e</replaceable>로 생성되고 실행되는 컨테이너들은 자신만의 마운트를 가질 수 있다. 이는 <replaceable>-m</replaceable>으로 지정된다. 현재 지원하는 마운트의 형식은 <replaceable>aufs</replaceable>, <replaceable>bind</replaceable>, <replaceable>overlay</replaceable>의 세 종류이다. 마운트 형식은 <replaceable>-m</replaceable>의 추가 인수로 지정된다. 그리고 쉼표(,)로 구분하여 여러번 지정할 수 있다. <replaceable>aufs</replaceable>와 <replaceable>overlay</replaceable> 마운트는 현재 <replaceable>-m overlay=/src:/dest</replaceable>와 같이 지정한다. <replaceable>dest</replaceable>의 대상이 지정되지 않았다면 <replaceable>dest</replaceable>는 <replaceable>src</replaceable>와 동일한 값을 가진다.
173 읽기 전용 <replaceable>bind</replaceable> 마운트는 <replaceable>-m bind=/src:/dest:ro</replaceable>로 읽기쓰기 가능 <replaceable>bind</replaceable>마운트는 <replaceable>-m bind=/src:/dest:rw</replaceable>로 지정한다. 읽기쓰기 가능 <replaceable>bind</replaceable> 마운트가 기본값이므로, 읽기쓰기 가능을 원한다면 <replaceable>rw</replaceable>은 빼도 무관하다. <replaceable>dest</replaceable>를 생략했다면 마찬가지로 <replaceable>dest</replaceable>는 <replaceable>src</replaceable>와 같다. 여러번 마운트는 <replaceable>-m bind=/src1:/dest1:ro,bind=/src2:ro,overlay=/src3:/dest3</replaceable>와 같이 가능하다.
174 </para>
175
176 <para>
177 <!--
178 The mounts, their options, and formats supported via the
179 <replaceable>-m</replaceable> flag are subject to change.
180 -->
181 <replaceable>-m</replaceable>를 통해 지원되는 마운트, 옵션, 형식은 변경될 수 있다.
182 </para>
183 </refsect1>
184
185 <refsect1>
186
187 <title><!-- Options -->옵션</title>
188
189 <variablelist>
190
191 <varlistentry>
192 <term> <option>-N,--newname <replaceable>newname</replaceable></option> </term>
193 <listitem>
194 <para><!-- The name for the copy. -->복사본의 이름</para>
195 </listitem>
196 </varlistentry>
197
198 <varlistentry>
199 <term> <option>-p,--newpath <replaceable>newpath</replaceable></option> </term>
200 <listitem>
201 <para><!-- The path for the copy. -->복사본의 경로</para>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry>
206 <term> <option>-R,--rename </option> </term>
207 <listitem>
208 <para><!-- Rename the original container. -->원본 컨테이너의 이름 변경</para>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry>
213 <term> <option>-s,--snapshot </option> </term>
214 <listitem>
215 <para>
216 <!--
217 Create a snapshot of the orginal container. The backing
218 storage for the copy must support snapshots. This currently includes
219 aufs, btrfs, lvm, overlay, and zfs.
220 -->
221 원본 컨테이너의 스냅샷을 생성한다. 복사본의 저장소는 반드시 스냅샷을 지원해야 한다. 현재 aufs, btrfs, lvm, overlay, zfs가 가능하다.
222 </para>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry>
227 <term> <option>-F,--foreground</option> </term>
228 <listitem>
229 <para>
230 <!--
231 Run the snapshot in the foreground. The snapshots console will
232 be attached to the current tty. (This option can only be specified
233 in conjunction with <replaceable>-e</replaceable>.)
234 -->
235 스냅샷을 포그라운드로 실행한다. 스냅샷 콘솔은 현재 tty에 붙게 된다. (이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.)
236 </para>
237 </listitem>
238 </varlistentry>
239
240 <varlistentry>
241 <term> <option>-d, --daemon</option> </term>
242 <listitem>
243 <para>
244 <!--
245 Run the snapshot as a daemon (This is the default mode for
246 ephemeral containers.). As the container has no more tty, if an
247 error occurs nothing will be displayed, the log file can
248 be used to check the error. (This option can only be specified in
249 conjunction with <replaceable>-e</replaceable>.)
250 -->
251 데몬으로 스냅샷을 실행한다. (이는 임시 컨테이너의 기본 모드이다.) 오류가 발생하더라도 컨테이너가 tty를 가지지 않기 때문에 오류는 표시되지 않는다.
252 대신 로그 파일을 사용해 로그를 확인할 수 있다. 이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.)
253 </para>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry>
258 <term> <option>-m, --mount <replaceable>mounttype</replaceable></option> </term>
259 <listitem>
260 <para>
261 <!--
262 Specify a mount for a snapshot The
263 <replaceable>opts</replaceable> argument for the mount type can by
264 of type {aufs, bind, overlay}. For example <option>-m
265 bind=/src:/dest:ro,overlay=/src:/dest</option> (This option can
266 currently only be specified in conjunction with
267 <replaceable>-e</replaceable>.).
268 -->
269 스냅샷의 마운트를 지정한다. 마운트 형식을 위한 <replaceable>opts</replaceable> 인자는 aufs, bind, overlay를 사용 가능하다. 예를 들면 <option>-m bind=/src:/dest:ro,overlay=/src:/dest</option>이다. 이 옵션은 <replaceable>-e</replaceable> 옵션이랑만 사용 가능하다.)
270 </para>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry>
275 <term> <option>-B, --backingstorage <replaceable>backingstorage</replaceable></option></term>
276 <listitem>
277 <para>
278 <!--
279 Specify the backing storage type to be used for the copy
280 where 'backingstorage' is of type 'aufs', 'btrfs', 'dir', 'lvm', 'loop',
281 'overlay', or 'zfs'.
282 -->
283 복사본이 사용할 저장소의 형식을 지정한다. 'backingstorage'에는 'aufs', 'btrfs', 'dir', 'lvm', 'loop', 'overlay','zfs'이 사용 가능하다.
284 </para>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry>
289 <term> <option>-L, --fssize <replaceable>size [unit]</replaceable></option></term>
290 <listitem>
291 <para><!-- Specify the size for an 'lvm' filesystem. -->
292 'lvm' 파일시스템의 크기를 지정한다.
293 </para>
294 </listitem>
295 </varlistentry>
296
297 <varlistentry>
298 <term> <option>-D, --keepdata </option></term>
299 <listitem>
300 <para>
301 <!--
302 When this option is specified with
303 <replaceable>-e</replaceable> a non-ephemeral container is created
304 and started.-->
305 이 옵션을 <replaceable>-e</replaceable>와 지정하면 영구적인 컨테이너가 생성되고 시작된다.
306 </para>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry>
311 <term> <option>-K, --keepname </option></term>
312 <listitem>
313 <para>
314 <!--
315 When this option is specified the hostname of the original
316 container will be kept for the copy.
317 -->
318 이 옵션이 지정되면 원본 컨테이너의 호스트이름이 복사본에서도 그대로 유지된다.
319 </para>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry>
324 <term> <option>-M, --keepmac </option></term>
325 <listitem>
326 <para>
327 <!--
328 When this option is specified the MAC address of the original
329 container will be kept for the copy.
330 -->
331 이 옵션이 지정되면 원본 컨테이너의 MAC 주소가 복사본에서도 그대로 유지된다.
332 </para>
333 </listitem>
334 </varlistentry>
335
336 </variablelist>
337
338 </refsect1>
339
273b3837
SY
340 <refsect1>
341 <title><!-- Copy hook -->복사 훅</title>
342 <para>
343 <!--
344 If the container being copied has one or more
345 <filename>lxc.hook.clone</filename> specified, then the specified hooks
346 will be called for the new container. The first 3 arguments passed to the
347 clone hook will be the container name, a section ('lxc'), and the hook
348 type ('clone'). Extra arguments passed to <command>lxc-copy</command> will
349 be passed to the hook program starting at argument 4. The
350 <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
351 the path under which the container's root filesystem is mounted. The
352 configuration file pathname is stored in
353 <filename>LXC_CONFIG_FILE</filename>, the new container name in
354 <filename>LXC_NAME</filename>, the old container name in
355 <filename>LXC_SRC_NAME</filename>, and the path or device on which the
356 rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
357 -->
358 복사되는 컨테이너에 <filename>lxc.hook.clone</filename>가 하나 이상 지정되어 있다면, 지정한 훅들은 새로운 컨테이너를 위해 실핼될 것이다.
359 clone 훅에게 넘겨지는 처음 3개 인자들은 컨테이너 이름, 섹션 ('lxc'), 훅의 종류 ('clone')이 될 것이다.
360 <command>lxc-copy</command>에 넘겨지는 추가 인자들은 훅 프로그램에 4번째 인자부터 넘겨지기 시작한다.
361 <filename>LXC_ROOTFS_MOUNT</filename> 환경 변수는 컨테이너의 루트 파일시스템이 마운트되어 있는 경로를 담고 있다.
362 설정 파일의 경로 이름은 <filename>LXC_CONFIG_FILE</filename>에, 새 컨테이너의 이름은 <filename>LXC_NAME</filename>에, 원본 컨테이너의 이름은 <filename>LXC_SRC_NAME</filename>에, 그리고 루트 파일시스템이 위치하고 있는 경로나 디바이스는 <filename>LXC_ROOTFS_PATH</filename>에 각각 담겨 있다.
363 </para>
364 </refsect1>
365
b035f792
SY
366 &commonoptions;
367
368 &seealso;
369
370 <refsect1>
371 <title><!-- Author -->저자</title>
372 <para>Christian Brauner <email>christian.brauner@mailbox.org</email></para>
373 </refsect1>
374
375</refentry>
376
377<!-- Keep this comment at the end of the file
378Local variables:
379mode: sgml
380sgml-omittag:t
381sgml-shorttag:t
382sgml-minimize-attributes:nil
383sgml-always-quote-attributes:t
384sgml-indent-step:2
385sgml-indent-data:t
386sgml-parent-document:nil
387sgml-default-dtd-file:nil
388sgml-exposed-tags:nil
389sgml-local-catalogs:nil
390sgml-local-ecat-files:nil
391End:
392-->