[ubuntu-nz] rsync not working

Jim Cheetham jim at gonzul.net
Fri Jul 12 00:02:03 UTC 2013


On Thu, Jul 11, 2013 at 7:57 AM, Reinhold Pam Muller
<papabear- at xtra.co.nz> wrote:
> *** Launching RSYNC command (simulation mode):
> rsync -r -n -t -p -g -x -v -u -s ssh 445
> /brodieserver at 192.168.1.73:/documents/mydocuments/my music/  /media/ADATA
> CH94

Your command invocation is not correct, and suggests that you are
trying to do some non-standard stuff at the same time. Plus you have
spaces in your filenames which is making life difficult *before* rsync
gets to look at things.

Here's an attempt to guess at what you need - you are saying "Fetch
some files from 192.168.1.73 and put them on a device mounted here" :

rsync --dry-run -av --one-file-system --update --protect-args
"brodieserver at 192.168.1.73:/documents/mydocuments/my music"
"/media/ADATA CH94"

Both source and destination filenames have spaces in them, so you need
to put them in double-quotes.

-a == -rlptgoD as opposed to your current -rptg + -xvus, so as long as
you don't mind the additional -l (symlinks) and -D (devices/specials)
I'd use it to make things simpler

I've used the long names for most of the options to make sure you
recognise them, except for -a and -v because they're reasonably
well-known.

I don't know what the "ssh 445" bit was all about. If you are
suggesting that 192.168.1.73 has its ssh server listening on the
non-standard port of 445 then you have to use " -e 'ssh -p 445' " to
pass the port argument to ssh.

Even if you get rsync working, I'd suggest that you consider using the
git-annex assistant instead, as this will possibly do more of what you
want, with less configuration needed.
http://git-annex.branchable.com/assistant/ tells you about the
product, http://git-annex.branchable.com/install/Ubuntu/ helps you
install it on Ubuntu, if that's what you are using.

-jim



More information about the ubuntu-nz mailing list