Blame SOURCES/0015-rsync-Document-use-of-glob-rsync-out-in-guestfish-RH.patch

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