My setup is such that the backup server logs in to each remote host and
fetches all the data to store centrally (source is remote, destination is
local).

Perhaps the specifics of what I'm doing would give clues...
I set up a regular user's account for rdiff-backup on my backup server as
well as a directory where I save the backed up files to. That directory has
permissions for only rdiff-backup user and group (chmod -R
rdiff-backup:rdiff-backup /dirname). On the servers that I want to be backed
up I also created a user account for rdiff-backup, and in addition to the
entry in /etc/sudoers, in the file at
/rdiff-backup_home/.ssh/authorized_keys I put this on one line:

command="sudo rdiff-backup --server --restrict-read-only
/",from="backup_server_IP_address",no-port-forwarding,no-X11-forwarding,no-pty
ssh-rsa AAAAB3NzaC1<...long SSH public key here...> ==
rdiff-backup@backup_server 

So would each command rdiff-backup issues on the remote hosts require a
separate SSH login session?



Robert Nichols-2 wrote:
> 
> On 09/05/2012 07:33 AM, weloki wrote:
>> weloki wrote:
>>>
>>> I've been receiving logwatch reports each day from my servers and I
>>> notice
>>> after each backup that rdiff-backup connected via SSH many times, like
>>> from over 100 to 300 times per backup session. Why is this? Does it need
>>> to do that in order to function properly?
>>>
>>
>> Is anyone else seeing this? Is there a way to have rdiff-backup login
>> just
>> once through SSH to perform a daily backup?
> 
> I see just one ssh login per rdiff-backup session.  I am pushing my
> backups
> from the client to the server (source is local, destination is remote).
>  From your description, it sounds like that is what you are doing, too.
> Your situation might be entirely different if you are controlling the
> backups from the server and pulling from the clients.  I've never tried
> that.
> 
> -- 
> Bob Nichols     "NOSPAM" is really part of my email address.
>                  Do NOT delete it.
> 
> 
> _______________________________________________
> rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL:
> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
> 
> 

-- 
View this message in context: 
http://old.nabble.com/rdiff-backup-logging-in-through-sshd-several-times-tp34271866p34393613.html
Sent from the rdiff-backup-users mailing list archive at Nabble.com.


_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Reply via email to