From: D.M. Procida on
Ian McCall <ian(a)eruvia.org> wrote:

> On 2010-08-12 20:52:41 +0100,
> real-not-anti-spam-address(a)apple-juice.co.uk (D.M. Procida) said:
>
> > I have had Darwin Calendar Server running happily on a Linux server for
> > a couple of years.
> >
> > This morning, all my calendars disappeared. I can still connect to the
> > server, and create new calendars and items, but I want my old ones back.
> >
> > Any ideas what might have happened, or where the missing things might
> > be?
>
> Logs saying anything? Some update has remounted the partition without
> the xattr attribute (which I found a few times)?

I think you are right about missing attributes.

dirac:/var/spool/caldavd/calendars/__uids__/2e8f93bb-353d-50f1-a24a-3471
395786cc# getfattr -R .
# file: .
user.{DAV:}acl
user.{http:%2F%2Ftwistedmatrix.com%2Fxml_namespace%2Fdav%2Fprivate%2F}qu
ota-used

# file: 165CFF0C-F923-4639-ABFA-76C9696D4435
user.{DAV:}displayname
user.{DAV:}resourcetype
user.{http:%2F%2Fapple.com%2Fns%2Fical%2F}calendar-color
user.{http:%2F%2Fapple.com%2Fns%2Fical%2F}calendar-order
user.{http:%2F%2Fcalendarserver.org%2Fns%2F}getctag
user.{urn:ietf:params:xml:ns:caldav}calendar-free-busy-set
user.{urn:ietf:params:xml:ns:caldav}calendar-timezone

# file:
165CFF0C-F923-4639-ABFA-76C9696D4435/A96C1728-90A0-4209-816D-C95242E32BD
4.ics
user.{DAV:}getcontenttype
user.{http:%2F%2Ftwistedmatrix.com%2Fxml_namespace%2Fdav%2F}getcontentmd
5

# file: inbox
user.{http:%2F%2Fcalendarserver.org%2Fns%2F}calendar-availability

The calendar above - 165CFF0C-F923-4639-ABFA-76C9696D4435 - and its
single event both have xattributes.

The older calendars aren't even listed.

So - having failed to understand the getfattr/setattr man pages, from
where can I find the missing attributes, and how can I apply them to my
old calender directories and files?

A message on the calendarserver users list suggests that they can be
got/set recursively.

Daniele