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…")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
====Removing Archiver:====
+
===Removing Archiver:===
 
The archiver ships with a tool to uninstall the archiver components and remove the archiving tables from the database.
 
The archiver ships with a tool to uninstall the archiver components and remove the archiving tables from the database.
  
Line 11: Line 11:
 
That will completely remove all the archiver modules and reset the database schema to what it was without the archiver.
 
That will completely remove all the archiver modules and reset the database schema to what it was without the archiver.
  
====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'"
Line 18: Line 18:
 
     /usr/share/canit/scripts/canit-run-pg psql -c "delete from ticker where task = 'ArchiveProcessZipRequests';"
 
     /usr/share/canit/scripts/canit-run-pg psql -c "delete from ticker where task = 'ArchiveProcessZipRequests';"
  
====Delete All Archived Nail:====
+
===Delete All Archived Mail:===
  
 
     rm -rf /var/lib/canit/mail-archive
 
     rm -rf /var/lib/canit/mail-archive
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
[[category:All]][[category:Archiver]][[category:Management]]
 
[[category:All]][[category:Archiver]][[category:Management]]

Latest revision as of 12:52, 23 June 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 Mail:

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