Description of problem: rsync-out dose not support wildcard, if customer want to use the wildcard, need use "glob rsync-out". Now, Can not find this help in rsync-out helpout, need update it. Version-Release number of selected component (if applicable): libguestfs-1.22.6-4.el7.x86_64 How reproducible: Always Steps to Reproduce: Step 1: # cat /tmp/rsyncd.conf port = 33335 pid file = rsyncd.pid [src] path = /tmp/hostsrc comment = source use chroot = false read only = true [dest] path = /tmp/hostdest comment = destination use chroot = false read only = false Step 2: # rsync --daemon --config=/tmp/rsyncd.conf Step 3: # guestfish --network -a test1.img -m /dev/sda1 ><fs> touch /test.c ><fs> rsync-out /*.c rsync://root.85.205:33335/dest/ archive:true libguestfs: error: rsync_out: '/*.c' to 'rsync://root.85.205:33335/dest/': rsync: link_stat "/sysroot/*.c" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1039) [sender=3.0.6] ><fs> glob rsync-out /*.c rsync://root.85.205:33335/dest/ archive:true Actual results: Expected results: Additional info: Has same issue in RHEL, libguestfs-1.20.10-3.el6.x86_64
https://github.com/libguestfs/libguestfs/commit/c04fbbda3e1d2bf98e241a95e069ac1fe202c14f
Fix also included in libguestfs-1.20.10-4.el6 (note there is no separate bug for RHEL 6, I just included the fix in the routine build).
Verified with libguestfs-1.22.6-16.el7.x86_64 ><fs> help rsync-out ... Globbing does not happen on the "src" parameter. In programs which use the API directly you have to expand wildcards yourself (see "glob_expand"). In guestfish you can use the "glob" command (see "glob" in guestfish(1)), for example: ><fs> glob rsync-out /* rsync://remote/ Help out is update.
This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request.