A set of commands to create address books, calendars, and to migrate address books:
dav dav:cleanup-chunks Cleanup outdated chunks dav:create-addressbook Create a dav address book dav:create-calendar Create a dav calendar dav:sync-birthday-calendar Synchronizes the birthday calendar dav:sync-system-addressbook Synchronizes users to the system address book
|These commands are not available in single-user (maintenance) mode.|
dav:cleanup-chunks cleans up outdated chunks (uploaded files) more than a certain number of days old.
By default, the command cleans up chunks more than 2 days old.
However, by supplying the number of days to the command, the range can be increased.
For example, in the example below, chunks older than 10 days will be removed.
sudo -u www-data php occ dav:cleanup-chunks 10 # example output Cleaning chunks older than 10 days(2017-11-08T13:13:45+00:00) Cleaning chunks for admin 0 [>---------------------------]
The syntax for
dav:create-addressbook [user] [name].
This example creates the addressbook
mollybook for the user molly:
sudo -u www-data php occ dav:create-addressbook molly mollybook
This example creates a new calendar for molly:
sudo -u www-data php occ dav:create-calendar molly mollycal
Molly will immediately see these on her Calendar and Contacts pages. Your existing calendars and contacts should migrate automatically when you upgrade. If something goes wrong you can try a manual migration. First delete any partially-migrated calendars or address books. Then run this command to migrate user’s contacts:
sudo -u www-data php occ dav:migrate-addressbooks [user]
Run this command to migrate calendars:
sudo -u www-data php occ dav:migrate-calendars [user]
dav:sync-birthday-calendar adds all birthdays to your calendar from address books shared with you.
This example syncs to your calendar from user
sudo -u www-data php occ dav:sync-birthday-calendar bernie
dav:sync-system-addressbook synchronizes all users to the system addressbook.
sudo -u www-data php occ dav:sync-system-addressbook