Difference between revisions of "Remove Archiver"

From Roaring Penguin
Jump to: navigation, search
(Created page with "====Removing Archiver:==== The archiver ships with a tool to uninstall the archiver components and remove the archiving tables from the database. First, you need to be on versio…")
 
Line 12: Line 12:
  
 
====Remove Ticker Messages:====
 
====Remove Ticker Messages:====
that will be generated:
+
Running the above command will generate messages which can be deleted from the database by:
  
 
     /usr/share/canit/scripts/canit-run-pg psql -c "DELETE FROM ticker WHERE task = 'IndexArchivedMail'"
 
     /usr/share/canit/scripts/canit-run-pg psql -c "DELETE FROM ticker WHERE task = 'IndexArchivedMail'"

Revision as of 14:04, 15 May 2014

Removing Archiver:

The archiver ships with a tool to uninstall the archiver components and remove the archiving tables from the database.

First, you need to be on version 8.0.6 or later, so if you're not, please run "upgrade-canit-appliance".

Then run:

 /usr/share/canit/scripts/remove-canit-archiver.pl

and follow the prompts.

That will completely remove all the archiver modules and reset the database schema to what it was without the archiver.

Remove Ticker Messages:

Running the above command will generate messages which can be deleted from the database by:

   /usr/share/canit/scripts/canit-run-pg psql -c "DELETE FROM ticker WHERE task = 'IndexArchivedMail'"
   /usr/share/canit/scripts/canit-run-pg psql -c "DELETE FROM cluster_sanity_check WHERE NOT test_ok"
   /usr/share/canit/scripts/canit-run-pg psql -c "delete from ticker where task = 'ArchiveProcessZipRequests';"

Delete All Archived Nail:

   rm -rf /var/lib/canit/mail-archive