Product SiteDocumentation Site

8.3. Perform cleanup task

To keep the archive in sync with the primary store when items are deleted in the primary store, the archive needs to be started in cleanup mode. This is a separate operation because it’s a time consuming operation. Therefore it’s advisable to run cleanup less often than the archive operation.

8.3.1. From the command-line

The following command performs a cleanup for all users:
zarafa-archiver -C
Passing the --local-only option to zarafa-archiver causes it to only cleanup the archives of users who have a store on the server to which zarafa-archiver is connected. This is the server on which zarafa-archiver is executed unless otherwise configured in the configuration file.
zarafa-archiver -C --local-only
It’s also possible to explicitly specify which users archive to cleanup:
zarafa-archiver -u <user name> -C
It’s recommended to perform the cleanup run once a week. This can be done by adding the following line to /etc/crontab.
0 3 * * 0 root [ -x /usr/bin/zarafa-archiver ] && /usr/bin/zarafa-archiver -C