Restoring a Personal calendar
- First, check if the calendar still exists:
SELECT * FROM oc_calendars WHERE principaluri = 'principals/users/<your_user_id>' and uri = 'personal';.- If the calendar has been renamed, the following query will rename the calendar:
UPDATE oc_calendars SET displayname = 'Personal' WHERE principaluri = 'principals/users/<your_user_id>' and uri = 'personal'; - If the calendar has a
deleted_attimestamp it should be restored from the Trash Bin in the frontend (bottom left of the Calendar app) to trigger the necessary events.
- If the calendar has been renamed, the following query will rename the calendar:
- If the calendar has been deleted entirely:
- The user themselves can create a new calendar with the name 'personal' which will create a calendar with the correct ID
- The sysadmin can create the calendar via the occ command
occ dav:create-calendar userId calendarName.
The user can rename the calendar. As an example, the user interface may be in German, so the user might prefer the name "Persönlich" for their personal calendar.
The user can select the calendar as the default calendar for invitations in the Calendar app settings (bottom left of the Calendar app).
Subscriber exclusive content
A Nextcloud Enterprise Subscription provides unlimited access to our knowledge base articles and direct access to Nextcloud engineers.