D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] rsync over ssh permissions

 

--------- Original Message --------
From: list@xxxxxxxxxxxxx
To: list@xxxxxxxxxxxxx <list@xxxxxxxxxxxxx>
Subject: Re: [LUG] rsync over ssh permissions
Date: 02/01/08 21:48

> 
> Andy Smith wrote:
> &gt; On Wed, Jan 02, 2008 at 03:26:41PM +0000, Simon Williams wrote:
> &gt;&gt; Hello everyone (and Happy New Year).
> &gt;&gt;
> &gt;&gt; I'm trying to make a backup of my server using rsync over ssh.
Direct 
> &gt;&gt; root logins are not permitted on either machine, but this
presents a 
> &gt;&gt; problem. I need to have root perms on the server so that I can
see all 
> &gt;&gt; the files to backup. But I also need root perms on the machine to
which 
> &gt;&gt; the backups are being made so that the ownership of files is
preserved.
> &gt; 
> &gt; Why not do rsync over ssh with a key that has a forced command, and
> &gt; then only allow root logins that force commands?
> &gt; 
> &gt; Your command would verify that the only thing you are doing is
> &gt; rsync.
> &gt; 
> &gt; Something like this:
> &gt; http://troy.jdmz.net/rsync/
> &gt; 
> &gt; I use this for rsnapshot (which uses rsync and ssh) backups as
> &gt; root/root.
> &gt; 
> &gt; Cheers,
> &gt; Andy
> &gt; 
> 
> on a slightly related note, has anyone got a working rdiff-backup ?
> 
> I've been trying to use it for a while without any success, seems python
> keeps dyeing..
> 

uhh... seems I had a version mismatch issue..



-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html