From 7131c46d9a89f4a3c3d3e92006fc52ecb683b2db Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Thu, 29 Aug 2013 13:49:26 +0100
Subject: [PATCH] rsync: Document use of glob + rsync-out in guestfish
(RHBZ#1001876).
(cherry picked from commit c04fbbda3e1d2bf98e241a95e069ac1fe202c14f)
---
generator/actions.ml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/generator/actions.ml b/generator/actions.ml
index 302d61b..d679f1a 100644
--- a/generator/actions.ml
+++ b/generator/actions.ml
@@ -10347,7 +10347,14 @@ The format of the remote server string is defined by L<rsync(1)>.
Note that there is no way to supply a password or passphrase
so the target must be set up not to require one.
-The optional arguments are the same as those of C<guestfs_rsync>." };
+The optional arguments are the same as those of C<guestfs_rsync>.
+
+Globbing does not happen on the C<src> parameter. In programs
+which use the API directly you have to expand wildcards yourself
+(see C<guestfs_glob_expand>). In guestfish you can use the C<glob>
+command (see L<guestfish(1)/glob>), for example:
+
+ ><fs> glob rsync-out /* rsync://remote/" };
{ defaults with
name = "ls0";
--
1.8.3.1