Backing up logs during flight ULog format

Hi

It has happened with me a couple of times that my logs got deleted after the flight or crash. I want to replicate logs somewhere else as well in addition to them being on the SD card. What is the best possible way of achieving this?

I have an SBC as well with mavros connected with my drone. Can I somehow get the ULOG file there?

Rosbag is one of the option but I want direct PX4 logs. Please help!!!

I never experienced logs disappearing but you could stream the logs to the ground station if you want
https://dev.px4.io/en/log/logging.html#log-streaming