I would like to transfer the configuration of a Rutc50 with firmware 7.20.3 to another identical device. This works, but only with all the old log files from the other device and also the data consumption values from the SIM card. This is obviously not desirable. Is there a way to clean up this data without completely recreating the configuration? That’s a lot of work.
Or what would be the best way to create a standard configuration that can then be transferred to multiple routers without containing individual usage data?
By the way: The delete option under “Logging Settings” is available, but grayed out.
To delete the system logs from the device, run the following command in the CLI: rm /log/log.db
Instructions how to access the CLI can be found here - Command Line Interfaces - Teltonika Networks Wiki
Removing the mobile data usage records requires a few additional steps:
Stop the mdcollectd service: /etc/init.d/mdcollectd stop
Delete the related log files: rm /tmp/mdcollectd.db rm /usr/local/usr/lib/mdcollectd/mdcollectd.db_new.gz
Restart the service: /etc/init.d/mdcollectd start
I recommend downloading the backup immediately after completing these steps. If mobile data is in use, new records may appear quickly.
@Justinas
Thank you very much, that works perfectly. I just had to restart the router. Restarting with “/etc/init.d/eventslog restart”, as mentioned in other posts, did not work. There is no service with that name on the system.