You are not logged in.

#1 2009-10-07 21:23:32

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

[SOLVED] rsync and composed directories

hello folks

i recently discovered a tool called rsync , that is awesome for syncronization between my workstation and my netbook ( both using linux )

i have read all the documentation i could read, and now a got it working, i only got one anoying problem

when i am syncin' composed directory i tried to do this

rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:/home/MYUSER/my\ music/ ~/music

but i got an error saying me that it could'nt make stat over "my" and "music", and also checked this using "scp" and still couldn't do it

i also tried to used like this

rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:/home/MYUSER/"my music"/ ~/music

but i got the same error

somebody with an idea? i really don't want to rename all my composed folder with single name only for rsync and scp.

sorry for my english i am not native ( well i think that is obvious XD)

thanks in advance

Last edited by slacknatcher (2009-10-08 00:01:19)


Miscusi for my bad english

Offline

#2 2009-10-07 23:15:11

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: [SOLVED] rsync and composed directories

You need more backslashes. Local shell eats some, and the remote one does also. Try:

rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:/home/MYUSER/my\\ music/ ~/music

or maybe:

rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:/home/MYUSER/my\\\ music/ ~/music

Offline

#3 2009-10-07 23:18:39

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] rsync and composed directories

slacknatcher wrote:
rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:/home/MYUSER/"my music"/ ~/music

Single quotes around the whole thing should do it:

rsync -arv -e 'ssh -p MYPORT' 'MYUSER@MYIP:/home/MYUSER/my music/' ~/music

or

rsync -arv -e 'ssh -p MYPORT' MYUSER@MYIP:'/home/MYUSER/my music/' ~/music

Last edited by fukawi2 (2009-10-07 23:19:03)

Offline

#4 2009-10-08 00:00:56

slacknatcher
Member
From: Chile
Registered: 2009-07-08
Posts: 55

Re: [SOLVED] rsync and composed directories

thank a lot . it worked, putting  SOLVED in the title


Miscusi for my bad english

Offline

Board footer

Powered by FluxBB