mirror of
https://github.com/4IceG/luci-app-easyconfig-transfer.git
synced 2026-04-26 19:25:51 +03:00
[GH-ISSUE #4] Clean data after reboot #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?"
@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.
@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.
@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"?