Welcome! » Log In » Create A New Profile

Running rsnapshot

Posted by Anonymous 
Running rsnapshot
May 19, 2015 01:57AM
Ok, I have manages to install rsnapshot. It is on a Mac machine which has all my backup drives attached. I want to backup a Linux machine over ssh.

I can ssh into my Linux box using keys under my normal username, but since rsnapshot needs to run as root (to use the lock file) the root user does not have the Linux public key available. I get an error message saying public key permission failed. Mac's as default do not have a root user directory so I am not sure where to put the public key file. Can anyone give me some direction.

Alternatively, am I able to run rsnapshot as a general user?

[quote]Regards,
Keith Ellis
[/quote]
Running rsnapshot
May 19, 2015 04:24AM
On Tue, May 19, 2015 at 08:56:16AM +0000, Keith Ellis wrote:

[quote]I can ssh into my Linux box using keys under my normal username, but since
rsnapshot needs to run as root (to use the lock file) the root user does
not have the Linux public key available. I get an error message saying
public key permission failed. Mac's as default do not have a root user
directory so I am not sure where to put the public key file. Can anyone
give me some direction.
[/quote]
On Macs ~root is /var/root. And you can get a real root shell in a
terminal by doing 'sudo su -' as an administrator.

--
David Cantrell | Minister for Arbitrary Justice

Good advice is always certain to be ignored,
but that's no reason not to give it -- Agatha Christie

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Running rsnapshot
May 19, 2015 04:28AM
On Tue, May 19, 2015 at 4:56 AM, Keith Ellis <keith.ellis < at > mac.com> wrote:
[quote]Ok, I have manages to install rsnapshot. It is on a Mac machine which has
all my backup drives attached. I want to backup a Linux machine over ssh.

I can ssh into my Linux box using keys under my normal username, but since
rsnapshot needs to run as root (to use the lock file) the root user does not
have the Linux public key available. I get an error message saying public
key permission failed. Mac's as default do not have a root user directory so
I am not sure where to put the public key file. Can anyone give me some
direction.

Alternatively, am I able to run rsnapshot as a general user?

Regards,
Keith Ellis
[/quote]
ssh-agent, especially with the 'keychain' perl sript, can be written
into your cron job that runs rsnapshot. See

http://sourceforge.net/p/rsnapshot/mailman/message/6585224/

You still have an unlocked SSH key, but it's only unlocked in memory,
not in the a passphrase free file, and it should ideally use a key
that is *not* the backup user's default key. Even if you don't use
keychain, as long as you save the 'eval ssh-agent` outpout into a
configuration file readable legible to the rsnapshot backup user, that
user can source that only that user should have access to.

Do *not* use the default key location for this: you can specify the
key location in the SSH options for rsnapshot.

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Running rsnapshot
May 19, 2015 04:58AM
[quote]Thanks for this, just so I understand, my keys are not password protected, but by using sudo to launch rsnapshot, root does not use my keys. Are you saying I can use keychain to open my keys from ~/.ssh for my general user account?
[quote]Regards,
Keith Ellis
[/quote]

On 19 May, 2015,at 12:27 PM, Nico Kadel-Garcia <nkadel < at > gmail.com> wrote:

[quote]On Tue, May 19, 2015 at 4:56 AM, Keith Ellis <keith.ellis < at > mac.com ([email]keith.ellis < at > mac.com[/email])> wrote:
[quote]Ok, I have manages to install rsnapshot. It is on a Mac machine which hasall my backup drives attached. I want to backup a Linux machine over ssh.
I can ssh into my Linux box using keys under my normal username, but sincersnapshot needs to run as root (to use the lock file) the root user does nothave the Linux public key available. I get an error message saying publickey permission failed. Mac's as default do not have a root user directory soI am not sure where to put the public key file. Can anyone give me somedirection.
Alternatively, am I able to run rsnapshot as a general user?
Regards,Keith Ellis[/quote]
ssh-agent, especially with the 'keychain' perl sript, can be written
into your cron job that runs rsnapshot. See

[url=http://sourceforge.net/p/rsnapshot/mailman/message/6585224/]http://sourceforge.net/p/rsnapshot/mailman/message/6585224/[/url]

You still have an unlocked SSH key, but it's only unlocked in memory,
not in the a passphrase free file, and it should ideally use a key
that is *not* the backup user's default key. Even if you don't use
keychain, as long as you save the 'eval ssh-agent` outpout into a
configuration file readable legible to the rsnapshot backup user, that
user can source that only that user should have access to.

Do *not* use the default key location for this: you can specify the
key location in the SSH options for rsnapshot.

[/quote]

[/quote]
Sorry, only registered users may post in this forum.

Click here to login