Aaron Mulder on 1 Oct 2013 19:29:49 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] strange rsync behavior


>From "man rsync":

       As a special case, if a single source arg is specified without a desti-
       nation, the files are listed in an output format similar to "ls -l".

Thanks,
      Aaron

On Tue, Oct 1, 2013 at 10:13 PM, Eric at Lucii.org <eric@lucii.org> wrote:
> I've encountered a strange problem with rsync.
>
> The data is being transferred from a remove vm via ssh tunneling.
> The command executes and the file names all stream across the screen.
> At the end there are no files transferred.  Since the destination directory has
> no files in it and there are gigabytes in the vm I'm not sure what it thinks it
> did.
>
> Here's the command:
>
>   rsync -av --rsh=ssh VM:"/home/netlogon"
>
> The ssh tunnel is "VM" defined by this .ssh/config entry:
>
> Host VM
>   Hostname 192.168.4.4
>   user root
>   ServerAliveInterval 300
>   ProxyCommand ssh oldsys nc %h %p
>
> Host oldsys
>   Hostname 99.99.99.9
>   user eric
>   ServerAliveInterval 300
>
>
> I know the ssh tunnel works because I can use it to ssh to the vm and scp works too.
>
> Enclosing the "ssh VM:/home/netlogon" in quotes like that rather than
> the command above generates an error.
>
> rsync normally "just works" - what's going on?
>
> Eric
> --
> #  Eric Lucas
> #
> #                "Oh, I have slipped the surly bond of earth
> #                 And danced the skies on laughter-silvered wings...
> #                                        -- John Gillespie Magee Jr
> ___________________________________________________________________________
> Philadelphia Linux Users Group         --        http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug