Howto refresh/clean out the database periodically #517
|
Hi, how can I refresh/cleanup/remove older data from the timewarrior data to start fresh? Now that I understand it better and have established a new tag naming convention I'd like to use, I would like to remove some chunks Of older data. Thanks in advance |
Replies: 1 comment 2 replies
|
Hello. Currently, the easiest way to delete old data is to remove data files from the database. The output of $ timew diag | grep Database:
Database: xxxIn a directory named If tags.data is missing, timew will recreate it from any existing YYYY-mm.data files, and the undo is only needed to support To completely start fresh you can delete everything under data. |
Hello. Currently, the easiest way to delete old data is to remove data files from the database.
The output of
timew diagwill show you where timewarrior currently has the database:$ timew diag | grep Database: Database: xxxIn a directory named
dataunder the database directory is where timewarrior currently stores interval data. There are the YYYY-mm.data files that store intervals, tags.data which tracks known tags to report if a tag is new ,and undo.data to support thetimew undooperation.If tags.data is missing, timew will recreate it from any existing YYYY-mm.data files, and the undo is only needed to support
timew undo. So you can delete any older YYYY-mm.data files you wa…