Hi Geoff,
On 2008-02-13 06:07, Geoff Shang wrote:
organise backups of the office machine on one of the servers.
I was going to use a simple rsync process, but as far as I can see it,
it would have to run as root on my end in order to be able to write to
directories owned by other people. I'm rather disinclined to do this
I don't mind setting up processes to run as root on the machine to be
backed up, in fact I don't see that I've got much choice about that.
How about using rexecsync (http://tromer.org/misc/rexecsync)?
On the backup server, just do:
$ rexecsync -v 'ssh [EMAIL PROTECTED]' 'tar czf - /home' /backups/client.tgz
Better yet, you don't need to run anything other than 'tar' as root.
Just put the 'tar czf - /home' command in a suid-root binary that's
executable only be a dedicated user, say [EMAIL PROTECTED], and then:
$ rexecsync -v 'ssh [EMAIL PROTECTED]' 'path-to-suid' /backups/client.tgz
Eran
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]