Carl Wilhelm Soderstrom wrote:
> On 08/17 04:42 , Nathan Barham wrote:
> 
>>Thanks for posting this (and for writing it in the first place).  It's a
>>good idea, and the only thing that prevents me from doing it is that
>>I'll have to do it too many times, and I'll never remember what I did 6
>>months from now.  Perhaps a script is in order .... hmmmm....
> 
> 
> we built a Debian package to do the setup work on the client side. I can
> send you a copy if you like.
> 

Ah, NOW you tell me :)

Actually I just wrote a script that takes care of most of it.  I can run
it from the server and it will  ...

* Check that rsync and sudo exist on the client
* Create the (low UID) rsynbackup user, & ~.ssh directory
* Install the authorized_keys2 file
* chown and chmod ~/rsyncbackup/.ssh
* Gives you a y/n choice of appending the needed string to /etc/sudoers,
  (though it warns you and runs visudo -c afterwards)

It takes two parameters, i.e the hostname, and the name of a file that
you want installed as the rsynbackup user's authorized_keys2 file.

Whenever I add a new system to backup I plan to make a copy of
backuppc's id_dsa.pub (naming it like "hostname_ak2"), prepend my
desired restrictions and rsync command to it, and run my script
specifying that file.  More or less like this ...

bpc_addcleint hostname hostname_ak2

The caveat is that I need to be able to ssh as root to the remote box,
and I have to type the root password 4 times, which is a terrible kludge
but still much faster than setting it up by hand.  I'm no shell scripter
 but it seems to work, and should be easily tweakable.

If you or anyone else is interested in it I can throw it out on the web
someplace.

-Nathan

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to