Re: [Server-devel] Weird timestamps on XS 0.4 user backup directories.

2008-10-26 Thread Martin Langhoff
On Sun, Oct 26, 2008 at 12:46 AM, Bill Bogstad [EMAIL PROTECTED] wrote:
 Not an operational problem, just a bit of user confusion.  I've now
 skimmed the python/shell/cron/incron code/configs and see how the
 everything more or less fits together now.  Although, I've never seen
 setfacl actually used before now...

Yeah, I'm not a big fan of ACL twiddling but this is just the perfect
use case. Had to read the manpage to check the syntax :-)

cheers,



m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Weird timestamps on XS 0.4 user backup directories.

2008-10-25 Thread Bill Bogstad
So I've got an XS 0.4 system running and I have an XO running 8.2
registered with the server and automated backups seem to be happening
fine.  If I log onto the server and look at the XOs backup directory I
see the following:

[EMAIL PROTECTED] CSN74800E35]# pwd
/library/users/CSN74800E35
[EMAIL PROTECTED] CSN74800E35]# ls -l
total 44
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
datastore-2008-10-20_17:31
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
datastore-2008-10-21_00:15
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
datastore-2008-10-22_00:16
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
datastore-2008-10-23_00:17
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
datastore-2008-10-25_18:36
drwxr-xr-x  3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00 datastore-current
lrwxrwxrwx  1 CSN74800E35 CSN74800E35   53 2008-10-25 14:36
datastore-latest -
/library/users/CSN74800E35/datastore-2008-10-25_18:36
[EMAIL PROTECTED] CSN74800E35]# ls -lc
total 44
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-20 13:31
datastore-2008-10-20_17:31
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-20 20:15
datastore-2008-10-21_00:15
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-21 20:16
datastore-2008-10-22_00:16
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-22 20:17
datastore-2008-10-23_00:17
drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-25 14:36
datastore-2008-10-25_18:36
drwxr-xr-x  3 CSN74800E35 CSN74800E35 4096 2008-10-20 13:31 datastore-current
lrwxrwxrwx  1 CSN74800E35 CSN74800E35   53 2008-10-25 14:36
datastore-latest -
/library/users/CSN74800E35/datastore-2008-10-25_18:36


You'll notice that each of the datastore backup directories have
exactly the same modification timestamp (2008-10-14 20:00).  The
change time stamps on the other hand are consistent with
the names.  Is there a reason for this?  Why that particular date/time
for the mod time?

Bill Bogstad
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Weird timestamps on XS 0.4 user backup directories.

2008-10-25 Thread Douglas Bagnall
hi Bill

 So I've got an XS 0.4 system running and I have an XO running 8.2
 registered with the server and automated backups seem to be happening
 fine.  If I log onto the server and look at the XOs backup directory I
 see the following:
[...]
 drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
 datastore-2008-10-20_17:31
 drwxr-xr-x+ 3 CSN74800E35 CSN74800E35 4096 2008-10-14 20:00
 datastore-2008-10-21_00:15
[...]
 You'll notice that each of the datastore backup directories have
 exactly the same modification timestamp (2008-10-14 20:00).  The
 change time stamps on the other hand are consistent with
 the names.  Is there a reason for this?  Why that particular date/time
 for the mod time?

The backup directories are created with cp -al, where the -a (for
archive) recursively preserves modes, links and dates.  I'm pretty
sure the main intention was to keep modes and links, and dates are
just an artifact.  If it is causing problems you could argue for a
change.

The -l, btw, turns every copy into a hard link, so duplicates use no
extra space -- it becomes a copy-on-write backup.


Douglas
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Weird timestamps on XS 0.4 user backup directories.

2008-10-25 Thread Bill Bogstad
On Sat, Oct 25, 2008 at 6:18 PM, Douglas Bagnall
[EMAIL PROTECTED] wrote:

 The backup directories are created with cp -al, where the -a (for
 archive) recursively preserves modes, links and dates.  I'm pretty
 sure the main intention was to keep modes and links, and dates are
 just an artifact.  If it is causing problems you could argue for a
 change.

Not an operational problem, just a bit of user confusion.  I've now
skimmed the python/shell/cron/incron code/configs and see how the
everything more or less fits together now.  Although, I've never seen
setfacl actually used before now...

Thanks again,
Bill
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel