hmm, I'm not sure I got all of that.

My understanding is the string starting -vlHog is all single item 
arguments to rsync.  I can't remember where i got it from, it might have 
been with a sshd debug statement.  I don't think dirvish is going to 
change those arguments any time soon.

For remote hosts I set xdev to 0 in the dirvish default.conf file and 
backup everything, and set excludes for parts of the filesystem I don't 
want.

Sean

On 1/20/19 8:38 PM, Richard Hector wrote:
> On 21/01/19 8:31 AM, Sean Whitney wrote:
>> Richard:
>>
>> I'm not sure what you are attempting.  However, I allow root ssh access
>> to my remote servers from my dirvish server and the forced command
>> string is in the .ssh/authorized_keys file.  It looks like this
>>
>> from="<ip of dirvish server",command="rsync --server --sender
>> -vlHogDtpre.iL --numeric-ids .
>> /",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-dss <key
>> follows>
> 
> Thanks Sean,
> 
> Mine used to have:
> 
> command="rsync --server --sender -vlHogDtprx --numeric-ids . /"
> 
> ... as well as other options.
> 
> Looking now at what the client requests, the mess of letters in the
> middle is now:
> 
> -vlHogDtprxe.iLsfxC
> 
> The trouble is, I can only look those up as far as the first x. After
> that, I have no idea what 'e.iLsfxC' actually means, which means I don't
> know when it might change. Actually, I don't really know if the previous
> options mean the same things as in a normal invocation either.
> 
> At the moment, my wrapper script captures the whole block from the
> SSH_FORCED_COMMAND environment variable, and replays it (having checked
> that the final path component is acceptable).
> 
> The goal, by the way, is to be able to backup multiple different paths
> on the same machine, with forced commands, and without having to ahve a
> different key for each path (which is what I've been doing up till now).
> 
> Thanks,
> Richard
> 
>>
>>
>> Sean
>>
>> On 1/20/19 12:20 AM, Richard Hector wrote:
>>> Hi all,
>>>
>>> I'm writing a wrapper script to use as an ssh forced command.
>>>
>>> It would be useful to understand the options used in the "rsync --server
>>> --sender" command executed on the remote - but the man page doesn't
>>> cover them.
>>>
>>> Anyone know where to find such documentation?
>>>
>>> Cheers,
>>> Richard
>>> _______________________________________________
>>> Dirvish mailing list
>>> [email protected]
>>> http://www.dirvish.org/mailman/listinfo/dirvish
>>>
>>
> 
> _______________________________________________
> Dirvish mailing list
> [email protected]
> http://www.dirvish.org/mailman/listinfo/dirvish
> 

-- 
Do not be too moral. You may cheat yourself out of much life. Aim above 
morality. Be not simply good; be good for something.
        ― Henry David Thoreau
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to