Re: [Server-devel] Backup of user home

2009-09-15 Thread Martin Langhoff
On Tue, Sep 15, 2009 at 3:25 PM, Raul Gutierrez Segales wrote: > But how will a non-root user be able to read the backup files > at /library/users give the following permissions: Look at the acls for a hint. Apache can already read those files :-) But your post points out an important distinctio

Re: [Server-devel] Backup of user home

2009-09-15 Thread Raul Gutierrez Segales
On Tue, 2009-09-15 at 11:45 +0200, Martin Langhoff wrote: > - Given that you are running your rsync from the backup server, it > will be easy to run it under fakeroot. Look at the fakeroot manpage, > you'll find that it can keep its metadata. With that, you'll preserve > metadata (owner/grp, acls,

Re: [Server-devel] Backup of user home

2009-09-15 Thread Rodolfo D.
Hello: > Interesting task. You aren't telling us much about your setup -- > specifically, how is the network conn between your XSs and your backup > server? > We're using the same ISP with public IPs on each schoolserver.. we rsync + ssh to a remote internet server so their not on the same netwo

Re: [Server-devel] Backup of user home

2009-09-15 Thread Martin Langhoff
Hi Rodolfo, On Mon, Sep 14, 2009 at 9:26 PM, Rodolfo D. wrote: > I'm working on a backup and restore feature for our schoolservers, and I got > stuck on home directories of laptops Interesting task. You aren't telling us much about your setup -- specifically, how is the network conn between your

Re: [Server-devel] Backup of user home

2009-09-14 Thread John Watlington
On Sep 15, 2009, at 1:12 AM, Raul Gutierrez Segales wrote: > On Mon, 2009-09-14 at 19:43 -0400, John Watlington wrote: >> You are correct. Since your backup script by definition needs to >> read ALL data, >> regardless of ownership or permissions, you will have to run it with >> superuser >> pr

Re: [Server-devel] Backup of user home

2009-09-14 Thread James Cameron
On Tue, Sep 15, 2009 at 01:12:24AM -0400, Raul Gutierrez Segales wrote: > On Mon, 2009-09-14 at 19:43 -0400, John Watlington wrote: > > > > Why don't you consider using the rsync server, instead of invoking it > > through a user ? > > > > What is the advantage of doing this instead of a pull u

Re: [Server-devel] Backup of user home

2009-09-14 Thread Raul Gutierrez Segales
On Mon, 2009-09-14 at 19:43 -0400, John Watlington wrote: > You are correct. Since your backup script by definition needs to > read ALL data, > regardless of ownership or permissions, you will have to run it with > superuser > priviledges. Unless, if this isn't a huge security hole, we can r

Re: [Server-devel] Backup of user home

2009-09-14 Thread John Watlington
You are correct. Since your backup script by definition needs to read ALL data, regardless of ownership or permissions, you will have to run it with superuser priviledges. Why don't you consider using the rsync server, instead of invoking it through a user ? John On Sep 14, 2009, at 3:

[Server-devel] Backup of user home

2009-09-14 Thread Rodolfo D.
Hello: I'm working on a backup and restore feature for our schoolservers, and I got stuck on home directories of laptops The backup works like this.. based on the backup script provided by dsd, and also based on our specific features.. I placed all important data in a directory "/library/backup"