summaryrefslogtreecommitdiffstats
path: root/fish/guestfish.pod
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-09-09 18:49:10 +0100
committerRichard Jones <rjones@redhat.com>2010-09-09 23:12:19 +0100
commit2635a9c70e5f8aab85bbcb6b7a645f720d1e4466 (patch)
treeccaad5f9ba3439a95275ee08bb1d4ca4e01ac6b3 /fish/guestfish.pod
parent43eed091129212dd29996838cf1d76af0f8fc135 (diff)
downloadlibguestfs-2635a9c70e5f8aab85bbcb6b7a645f720d1e4466.tar.gz
libguestfs-2635a9c70e5f8aab85bbcb6b7a645f720d1e4466.tar.xz
libguestfs-2635a9c70e5f8aab85bbcb6b7a645f720d1e4466.zip
fish: Implement copy-in and copy-out commands.
Diffstat (limited to 'fish/guestfish.pod')
-rw-r--r--fish/guestfish.pod34
1 files changed, 34 insertions, 0 deletions
diff --git a/fish/guestfish.pod b/fish/guestfish.pod
index aeb4c8da..70de8e39 100644
--- a/fish/guestfish.pod
+++ b/fish/guestfish.pod
@@ -781,6 +781,40 @@ For more advanced image creation, see L<qemu-img(1)> utility.
Size can be specified using standard suffixes, eg. C<1M>.
+=head2 copy-in
+
+ copy-in local [local ...] /remotedir
+
+C<copy-in> copies local files or directories recursively into the disk
+image, placing them in the directory called C</remotedir> (which must
+exist). This guestfish meta-command turns into a sequence of
+L</tar-in> and other commands as necessary.
+
+Multiple local files and directories can be specified, but the last
+parameter must always be a remote directory. Wildcards cannot be
+used.
+
+=head2 copy-out
+
+ copy-out remote [remote ...] localdir
+
+C<copy-out> copies remote files or directories recursively out of the
+disk image, placing them on the host disk in a local directory called
+C<localdir> (which must exist). This guestfish meta-command turns
+into a sequence of L</download>, L</tar-out> and other commands as
+necessary.
+
+Multiple remote files and directories can be specified, but the last
+parameter must always be a local directory. To download to the
+current directory, use C<.> as in:
+
+ copy-out /home .
+
+Wildcards cannot be used in the ordinary command, but you can use
+this with the help of L</glob> like this:
+
+ glob copy-out /home/* .
+
=head2 echo
echo [params ...]