On Sat, 20 Jun 2015 05:44:24 -0700 (PDT), in message alpine.LNX.2.11.1506200539350.8143@localhost, Rich Shepard wrote:
> A question for you professional admins: what situation might > result in the command, 'rsync -avz host:directory/subdirctory/ .' > reporting that the directory/subdirectory does not exist on that host > while the command, 'scp host:directory/subdirctory/* .' work like a > charm? If memory and my interpretation of the man page are correct (and neither may be, I've not had my morning caffeine yet), rsync requires you to specify an absolute path for the destination. Hence rsync -avz host:/path/to/dir/subdir/ . should work. > If I neglected to specify the target (that is '.') with the rsync > command, would that produce the observed result? Nope. To quote the man page, 'As a special case, if a single source arg is specified without a destination, the files are listed in an output format similar to "ls -l".' Hope this helps. --Dale -- "Only Irish coffee provides in a single glass all four essential food groups: alcohol, caffeine, sugar, and fat." -- Alex Levine
pgpThO87HuGCl.pgp
Description: OpenPGP digital signature
_______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
