OPNsense Forum

English Forums => Development and Code Review => Topic started by: sdetroch on February 21, 2026, 01:51:04 AM

Title: Clone Deciso appliance harddisk to file (for macOS only)
Post by: sdetroch on February 21, 2026, 01:51:04 AM
Hello all,

I needed a way to clone my Deciso 750 SSD to a file (to be able to restore later on the whole installation after a crash or hardware issue). Since booting CloneZilla via an USB stick didn't worked out, I started creating a simple script that was able to do the same from my Mac. A couple of hours later and with some help from AI, an interactive script to clone and restore from/to NVMe was born. Claude assisted in refactoring and here it is. Should be able to handle other use-cases as well (e.g. upgrading to a larger SSD, cloning other appliances etc).

To be able to read the SSD you will need a M.2 SSD NVMe enclosure, I can recommend this one (https://www.amazon.com.be/dp/B09T8P9LKQ?ref_=pe_109208871_1104779671_t_fed_asin_title) for speed and reliability on Mac, but others should work as well.

If interested, have a look at:
https://github.com/svendt/Clone-NVMe-for-MacOS

Feedback welcome (and be careful when opening the appliance to retrieve the SSD, warranty might be voided).