How can I view activities from old database backups without having to reimport them? #1161
Replies: 2 comments 1 reply
-
|
Backup current state, stop process swap it out, view/export what you'd like, restore old (new) backup, Sounds plasuable(?) |
Beta Was this translation helpful? Give feedback.
-
|
Hey brother, You can view the backup through a temporary ActivityWatch instanceYou do not need to import the archive into your current database or create a complete VM. The cleanest approach is to start only an ActivityWatch server on another port and point it at a copy of the archived SQLite database. First, identify the databaseDepending on the ActivityWatch version, the backup probably contains one of these:
Always work from a copy. ActivityWatch may perform schema migrations when opening an older database, so I would never point a newer server at the only copy of the backup. If it is an
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some backup of Activity Watch many years ago, it's about half of GB (literally
.local/share/activitywatchfolder)I'd like to view some of my activities in the past, but currently to view them, the only way is to import all of them to current database which I don't need (and also not reasonable to accumulate all the data)
Currently the only way I have is to import the data into a virtual machine and view everything from there.. but I wonder if anyone has a better way.?
Is it possible to develop a tool to make this more convenient?
Or a more radical way is to directly process the raw database file with a sqlite3 viewer?
Beta Was this translation helpful? Give feedback.
All reactions