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

Re: Rsync Permissions Issue



Hal Vaughan wrote:
> 
> On Apr 12, 2009, at 12:20 PM, H.S. wrote:
> 
>> Hal Vaughan wrote:
>>> I'm trying to use rsync to back up from one computer to another.
>>> Recently I had used NIS so all my systems had the same user on them so
>>> there was never a permission issue.  Now I'm trying to back up from my
>>> iMac to my Debian server.  I can't put the iMac on NIS (or probably
>>> could, but it would NOT be fun to set up, I'm sure).
>>>
>>> In the past I could use:
>>>
>>> rsync -av server::Writing /data/Writing
>>>
>>> And all my writing would be backed up from the local /data/writing to
>>> the server.  Now that I'm not using NIS, I use:
>>>
>>> rsync -av me@server::Writing /data/Writing
>>
>> I use rsync through SSH without any problems. If you have SSH server
>> running on the remote machine, try:
>> $> rsync -ave ssh me@server:Writing /data/Writing
>>
>> where "me" is your username at server machine.
> 
> I missed something here.  When I do this, it connects and instead of
> using the module I specify, it copies the files to my home (or "me's"
> home) directory on that computer.

The above command should copy files from ${HOME}/Writing (without a
path, a directory is assume to be in the starting folder, your home)
from the remote machine to /data/Writing on the machine you are running
this command on. If you want to get another path, specify that after
me@server:


> 
> Maybe it's another obvious point, but I don't see a way to use a single
> colon and have it write to a module I specify instead of to a
> directory.  Is that possible -- to get it to write to an rsync module
> instead of a directory while using ssh?

I think modules are used when you are talking to a rsync daemon.
Directory paths are used when you are talking to a shell at the remote
machine (as you do when using SSH). I do not have experience with the
former. Directory paths are just easier to work with, IMHO, since they
are the ones I use on a daily basis in a shell.



-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: