Backup with live usb Ubuntu

My Ubuntu gave kernel panic. I would like to know if I can make a backup with an Ubuntu live usb and save the main casaos folder on an external hard drive, I can’t lose my photos that are on the immich. Thank you very much.