Latest firmwares 1.13.1 and 1.13.2 for RUT240 does not restore backup correct. I razed this issue earlyer but no response to my reply on that matter
To replicate the bug:
Add the following lines to /etc/sysupgrade.conf
/root/backup_test
/backup_test_root
/etc/backup_test_etc
Create the folders and create some files in them. Reboot the router. Create a backup from webui Luci.
Check the downloaded backup file. As seen the backup file includes the created folders and files
Do a factory reset on the router. Set a password and restore the backup. reboot the router
Results:
/root/backup_test - not restored
/backup_test_root - not restored
/etc/backup_test_etc - restored