Backup files generated on RUT240 will not be compatible with RUT241. Thus, you will need to reconfigure RUT241 from scratch, generate a backup and apply a separate automation solution.
Alternatively, if you have your devices added to Teltonika's remote management system (RMS) you could write a script including all of the configuration options you want to set on a new device. Next, you would need to create a task in RMS platform web page. Lastly, you can select all the devices you want to upload the configuration to and execute the script for all of them at the same time.
Configuration can be realized through uci commands. For reference on how to use uci commands, check here. Be aware, that actual commands and options in your device will probably differ, thus, for the actual option names, check the device itself. For example, to list wireless options and values, use command:
You can find more details on RMS Task manager here.
As another way to migrate from RUT240 to RUT241, you can try to copy only configuration files from the backup file or RUT240 itself and move them to RUT241 using scp/WinSCP, as instructed in this page, since configuration interface is unified between the devices. The directory with the configuration files is /etc/config. Exclude system configuration file, as device firmware and device product code options differ between RUT240 and RTU241. Also, before moving configuration files, make sure firmware versions match between the devices.