We created a folder /etc/scripts. There homed several scripts.
In sysupgrade.conf we wrote /etc/scripts:
This file contains files and directories that should
be preserved during an upgrade.
/etc/example.conf
/etc/openvpn/
/etc/scripts/
/root/.ssh/known_hosts
After Firmware upgrade the folder /etc/scripts an the file /root/.ssh/known_hosts is missing.
I tested with different Firmwares. For example RUTX_R_00.07.08.2 > RUTX_R_00.07.09 or
RUTX_R_00.07.08.2 > RUTX_R_00.07.09.1.
Unfortunately, I wasn’t able to replicate the issue when upgrading the firmware from RUTX_R_00.07.08.2 to RUTX_R_00.07.09.1, as the folder /etc/scripts and the text file in it remained intact. To assist with troubleshooting, could you please provide a screenshot of your sysupgrade.conf file?
Additionally, there was a known issue where directories under /root were not saved correctly during firmware upgrades. For this reason, I recommend storing your scripts in /etc, which tends to be more reliable.
Hello.
I think I found the error.
The problem was probably in the copy / paste, so that the sysupgrade.conf had the character ^M at the end of each line.
Thanks for your efforts.