[GH-ISSUE #148] FEATURE - Backup for interacted_users.json #116

Closed
opened 2026-03-02 23:38:07 +03:00 by kerem · 1 comment
Owner

Originally created by @guztavoalves on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/148

I had an problem with this file many times, the content is blank after script crash or error when try writing on disk.

This file is very important, then creating an backup every new session resolve this problem.

Every new session get the content of interacted_users.json if not Null save the content in interacted_users_backup.json, after finished the session or script finished, save the content in interacted_users.json and interacted_users_backup.json.

I updated the storage.py for this feature, that's working fine. =)

storage.zip

Originally created by @guztavoalves on GitHub (Oct 21, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/148 I had an problem with this file many times, the content is blank after script crash or error when try writing on disk. This file is very important, then creating an backup every new session resolve this problem. Every new session get the content of interacted_users.json if not Null save the content in interacted_users_backup.json, after finished the session or script finished, save the content in interacted_users.json and interacted_users_backup.json. I updated the storage.py for this feature, that's working fine. =) [storage.zip](https://github.com/alexal1/Insomniac/files/5417564/storage.zip)
kerem 2026-03-02 23:38:07 +03:00
Author
Owner

@Fadude commented on GitHub (Jan 6, 2021):

Everything is under a sqlite3 db. Is it still needed? Closing, if needed please reopen

<!-- gh-comment-id:755244600 --> @Fadude commented on GitHub (Jan 6, 2021): Everything is under a sqlite3 db. Is it still needed? Closing, if needed please reopen
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#116
No description provided.