Script - Clear Reports Data: Difference between revisions

From Edge Threat Management Wiki - Arista
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
= What it is =
= What it is =


This script will delete all reports data currently stored on the drive. It deletes the entire database schema and re-initializes it.
This script will delete all reports data currently stored in the database.


This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the O/S)
This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the O/S)
Line 10: Line 10:


<code>
<code>
curl https://www.untangle.com/download/patches/generic/dump_reports_data.sh | dash
curl -k http://download.untangle.com/patches/generic/dump_reports_data.sh | dash
</code>
</code>
= Future =
This script will always be available to run, however will not be included in Untangle.

Revision as of 15:29, 5 October 2017

What it is

This script will delete all reports data currently stored in the database.

This can be useful if you have decreased the amount of data retention in reports and want to immediately see the free disk space available to the OS (otherwise it can take a long time for postgres to give that space back to the O/S)

WARNING: All reports data will be lost.

How to run

curl -k http://download.untangle.com/patches/generic/dump_reports_data.sh | dash