Hello Markus Rösler

Am 2013-06-07 09:51, schrieb [email protected]:
> How can I delete all entries of calendar, tasks or contacts of a specific user
> on the command line and where are these informations stored?
> 

You can delete a user in SOGo via the sogo-tool command.
You can also make a backup of his data beforehand, and restore that data
selectively with it.

So I would do the following:
sudo -u sogo /usr/sbin/sogo-tool backup ${dirForBackup} ${userName}
sudo -u sogo /usr/sbin/sogo-tool remove ${userName}
sudo -u sogo /usr/sbin/sogo-tool restore -p ${dirForBackup} ${userName}
sudo -u sogo /usr/sbin/sogo-tool restore -l ${dirForBackup} ${userName}

Now pick the folders (== names of calendars/task lists, address books)
to restore from the list you get, and do:
sudo -u sogo /usr/sbin/sogo-tool restore -f ${folderName}
${dirForBackup} ${userName}

Just make sure the user does't use his SOGo account while doing this.


That information is normally stored in your SOGo database, but the
command line is way more convinient to use.


Kind regards,
Christian Mack

-- 
Christian Mack
Gruppe Informationsdienste
Rechenzentrum Universität Konstanz
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to