Clearing/resting data

Issue #300 resolved
Former user created an issue

Is there a safe way to clear/purge everything while retaining all setting. Need this to test importing in from a clean, empty database/store

Comments (2)

  1. Janos SUTO repo owner

    See Q9 in the FAQ. If you want to keep eg. users, domains, retention rules, etc. then don't drop the piler database, rather drop the following tables:

    metadata, sph_counter, sph_index, attachment, tag, counter, counter_stats, and rcpt.

    Then run the mysql < db-mysql.sql command (I'd backup the piler database in case something goes wrong)

  2. Log in to comment