SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rdiff unattended backup questions.
Author Message
Post rdiff unattended backup questions. 
Hi,

Well I am really new to rdiff-backup and done some web searching today and not
finding the exact configuration recommendations that I want to do.

I found Dean's really cool rdiff-backup setup. website:
http://www.arctic.org/~dean/rdiff-backup/unattended.html

but I want to do something a little different. I want the machine that I am
backing up to intiate the ssh connection to the server that is providing the
backup space. I still want the rdiff-backup exchange to be handled by ssh.

any site out there document how this can be done? how about a site that
explains how to ssh with rdiff-backup. I think I found a site that didnt
really explain enough so I could understand it.

thanks in advance,

Noah

Post rdiff unattended backup questions. 
On Wed, 17 Aug 2005 21:54:45 -0800, Noah wrote:
but I want to do something a little different. I want the machine that I am
backing up to intiate the ssh connection to the server that is providing the
backup space. I still want the rdiff-backup exchange to be handled by ssh.

First, let's agree on terminology:

backup-host: host storing the backup data
production-host: host where the data originated from

In your case, the production-host will ssh to the backup-host and push
data: production-host ---ssh---> backup-host.

I assume that on the production-host, you will be using the root account.
On the backup host, I don't know which login you will use; let's call that
account "BACKUPUSER".

Now, first you need to make sure that root at production-host can do the
following without having to enter a password:
ssh BACKUPUSER < at > backup-host

This normally entails:
1. root < at > production-host runs "ssh-keygen -t rsa" which yields some
files in ~root/.ssh/
2. Transport the contents of ~root/.ssh/id_rsa.pub (one line)
and add it to BACKUPUSER's .ssh/authorized_keys file on backup-host.
Make sure that BACKUPUSER's .ssh directory and authorized_keys
directory/file may only be written to by BACKUPUSER (otherwise
ssh will refuse to use authorized_keys).
3. Now, root < at > production-host should be able to ssh backup-host
as user BACKUPUSER.

After this has been set up, the rest should be easy:
a. learn how to use rdiff-backup
b. adjust BACKUPUSER's authorized_keys file, tightening
up security, perhaps adjusting so that the relevant
line looks somewhat like this (one long line):

from="11.22.33.44",no-pty,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,command="rdiff-backup
--server" ssh-rsa AAAA....XXXX root < at > production-host

(Read ssh's manual pages for more on this.)

--
Greetings from Troels Arvin

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB