backu...@kosowsky.org wrote at about 00:11:50 -0400 on Friday, May 3, 2019:
 > In v3, when I was backing up on the same server, I eliminated an
 > "unncessary" extra ssh by substituting 'sudo' for 'ssh' using:
 >    $Conf{RsyncClientCmd} = '/usr/bin/sudo $rsyncPath $argList+';
 > 
 > Not sure how to do this in v4 where one doesn't have access to
 > RsyncClientCmd but instead can only specify:
 >    RsyncClientPath
 >    RsyncSshArgs
 >    SshPath
 > i.e., I don't see how to eliminate the use of ssh...
 > 

To clarify, I am trying to generate the following resulting command:
   /usr/bin/sudo /usr/bin/rsync --server --sender -slHogDtpAXrcxe.iLsf 
--iconv=UTF-8

Rather than the ssh version, which would be more like:
/usr/bin/ssh -l root mymachine /usr/bin/sudo /usr/bin/rsync --server --sender 
-slHogDtpAXrcxe.iLsf --iconv=UTF-8
(where mymachine really just equals localhost)

If I set:
   SshPath=''
   RsynClientPath ='/usr/bin/sudo /usr/bin/rsync'
   RsyncSshArgs = ''
I would presumably get the following, close, but  non-working commmand:
   mymachine /usr/bin/sudo /usr/bin/rsync --server --sender 
-slHogDtpAXrcxe.iLsf --iconv=UTF-8

I could presumably write a short shell script like:
  #!/bin/bash
  shift
  exec $*

Then set SshPath to the above script (with RsyncSshArgs = '').
But even if that would work, it seems klugey.


_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to