[GH-ISSUE #4] Clean data after reboot #2

Closed
opened 2026-03-04 12:03:00 +03:00 by kerem · 3 comments
Owner

Originally created by @mxmandr on GitHub (Oct 2, 2024).
Original GitHub issue: https://github.com/4IceG/luci-app-easyconfig-transfer/issues/4

Traffic statistics data is saved to the file: /tmp/easyconfig_statistics.json, which is recreated after each reboot. How can I change the path to the easyconfig_statistics.json file so that after rebooting, the traffic count continues from the values before the router was rebooted?"

Originally created by @mxmandr on GitHub (Oct 2, 2024). Original GitHub issue: https://github.com/4IceG/luci-app-easyconfig-transfer/issues/4 Traffic statistics data is saved to the file: /tmp/easyconfig_statistics.json, which is recreated after each reboot. How can I change the path to the easyconfig_statistics.json file so that after rebooting, the traffic count continues from the values before the router was rebooted?"
kerem closed this issue 2026-03-04 12:03:00 +03:00
Author
Owner

@4IceG commented on GitHub (Oct 2, 2024):

You have path to the file here

github.com/4IceG/luci-app-easyconfig-transfer@4b160c5a05/luci-app-easyconfig-transfer/root/usr/bin/easyconfig_statistics.sh (L16)

I don't know if I will be able to do it, add ability to change the path from LuCI.

<!-- gh-comment-id:2389689448 --> @4IceG commented on GitHub (Oct 2, 2024): You have path to the file here https://github.com/4IceG/luci-app-easyconfig-transfer/blob/4b160c5a05241b38c2bab473913e4d3c3048b4d3/luci-app-easyconfig-transfer/root/usr/bin/easyconfig_statistics.sh#L16 I don't know if I will be able to do it, add ability to change the path from LuCI.
Author
Owner

@mxmandr commented on GitHub (Oct 2, 2024):

Changing the parameter DB=/tmp/easyconfig_statistics.json in /root/usr/bin/easyconfig_statistics.sh will it be enough? /tmp/easyconfig_statistics.json is also specified in several other files.

<!-- gh-comment-id:2389771345 --> @mxmandr commented on GitHub (Oct 2, 2024): Changing the parameter DB=/tmp/easyconfig_statistics.json in /root/usr/bin/easyconfig_statistics.sh will it be enough? /tmp/easyconfig_statistics.json is also specified in several other files.
Author
Owner

@4IceG commented on GitHub (Oct 3, 2024):

There are many more path references.

Maybe instead of changing paths in the entire package, it would be easier to increase the frequency of making a backup ( archive .gz) and in the event of a restart, restore the data when router starts, as I added in the case of "scheduled restart"?

<!-- gh-comment-id:2392171777 --> @4IceG commented on GitHub (Oct 3, 2024): There are many more path references. Maybe instead of changing paths in the entire package, it would be easier to increase the frequency of making a backup ( archive .gz) and in the event of a restart, restore the data when router starts, as I added in the case of "scheduled restart"?
Sign in to join this conversation.
No labels
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/luci-app-easyconfig-transfer#2
No description provided.