Transferring install to new sd card

Hey y'all,
I've been using octoprint for a while now, and I realized the sd card I have in my pi is unnecessarily large, so I am swapping it out with a smaller one I have. Is there a way to clone the old sd card to the new one? Or is there a way to export the settings off the old one and import them into a fresh install? Thanks

yeah there is a backup and restore option in the settings.

just backup your old octoprint, flash the new ocotpi image on the new card, boot it, run the wizard and restore the backup