daemon: debug segv correct use of dereferencing NULL.
[libguestfs.git] / fish / virt-copy-in.pod
1 =encoding utf8
2
3 =head1 NAME
4
5 virt-copy-in - Copy files and directories into a virtual machine disk image.
6
7 =head1 SYNOPSIS
8
9  virt-copy-in -a disk.img file|dir [file|dir ...] /destination
10
11  virt-copy-in -d domain file|dir [file|dir ...] /destination
12
13 =head1 WARNING
14
15 Using C<virt-copy-in> on live virtual machines can be dangerous,
16 potentially causing disk corruption.  The virtual machine must be
17 shut down before you use this command.
18
19 =head1 DESCRIPTION
20
21 C<virt-copy-in> copies files and directories from the local disk into
22 a virtual machine disk image or named libvirt domain.
23
24 You can give one of more filenames and directories on the command
25 line.  Directories are copied in recursively.  The final parameter
26 must be the destination directory in the disk image which must be an
27 absolute path starting with a C</> character.
28
29 =head1 EXAMPLES
30
31 Update C</etc/resolv.conf> in a guest:
32
33  virt-copy-in -d MyGuest resolv.conf /etc
34
35 Upload a home directory to a guest:
36
37  virt-copy-in -d MyGuest skel /home
38
39 =head1 JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH
40
41 This command is just a simple shell script wrapper around the
42 L<guestfish(1)> C<copy-in> command.  For anything more complex than a
43 trivial copy, you are probably better off using guestfish directly.
44
45 =head1 OPTIONS
46
47 Since the shell script just passes options straight to guestfish, read
48 L<guestfish(1)> to see the full list of options.
49
50 =head1 SEE ALSO
51
52 L<guestfish(1)>,
53 L<virt-cat(1)>,
54 L<virt-copy-out(1)>,
55 L<virt-edit(1)>,
56 L<virt-tar-in(1)>,
57 L<virt-tar-out(1)>,
58 L<http://libguestfs.org/>.
59
60 =head1 AUTHORS
61
62 Richard W.M. Jones (C<rjones at redhat dot com>)
63
64 =head1 COPYRIGHT
65
66 Copyright (C) 2011 Red Hat Inc.
67 L<http://libguestfs.org/>
68
69 This program is free software; you can redistribute it and/or modify
70 it under the terms of the GNU General Public License as published by
71 the Free Software Foundation; either version 2 of the License, or
72 (at your option) any later version.
73
74 This program is distributed in the hope that it will be useful,
75 but WITHOUT ANY WARRANTY; without even the implied warranty of
76 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
77 GNU General Public License for more details.
78
79 You should have received a copy of the GNU General Public License
80 along with this program; if not, write to the Free Software
81 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.