Skip to content

Instantly share code, notes, and snippets.

View LordEvron's full-sized avatar

Luke LordEvron

View GitHub Profile
@LordEvron
LordEvron / purge_quassel_db-sqlite.sh
Created May 6, 2020 14:18 — forked from Und3rf10w/purge_quassel_db-sqlite.sh
Weekly purge of Quassel chat database for sqlite instances
#!/bin/sh
# Taken from http://blog.encomiabile.it/2011/02/03/prune-quassel-database/
BAK_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite.bak"
CURRENT_PATH="${HOME}/.config/quassel-irc.org/quassel-storage.sqlite"
# first day of data that will be maintained
# -7 day means that *every* chatline stored before 8 days ago and so on are going to be eliminated.
# only the last 7 days are keeped.
DATE_TO_PRUNE='-7 day'