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: [LUG] rsync over ssh permissions
Date: 02/01/08 13:18

> Hello everyone (and Happy New Year).
> 
> I'm trying to make a backup of my server using rsync over ssh. Direct 
> root logins are not permitted on either machine, but this presents a 
> problem. I need to have root perms on the server so that I can see all 
> the files to backup. But I also need root perms on the machine to which 
> the backups are being made so that the ownership of files is preserved.
> 
> Any ideas how to overcome this one?
> 
> Actually I sometimes have a similar problem with scp, where I want to 
> copy a config file or similar from one machine to another, but can't 
> because I don't have direct root login.
> 
> Is there any way to tell scp, rsync, etc to ssh into the machine and 
> then 'su' (asking for the password of course)?
> 
> Thanks in advance.
> Simon

Use tar to archive the data to be backed up, then rsync the tar file.. this
way permissions and ownership flags are maintained.

Just a thought..



-- 
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