Backup copy of the UAP-Pro firmware

Is it possible to make a backup copy of the original UAP-Pro firmware? It's the backup copy of the firmware that's interesting, not the configuration.

is the boot loader capable of booting in-memory images ?

yes, there is such a possibility

then bootm the KERNEL image from https://firmware-selector.openwrt.org/?version=23.05.3&target=ath79%2Fgeneric&id=ubnt_unifi-ap-pro, and do whatever you need to to with the data stored on flashed.

The problem is that I don't know what exactly needs to be done after loading the image into memory. How to copy firmware located in flash

cat /proc/mtd
dd if=/dev/mtdX of=/tmp/backup.mtdX

the last step is to retrieve the backup.mtdX files located in /tmp using scp.

Thank you, I managed to make a backup of the partitions