How to Clone current Boot Drive Truenas Scale OS to new SSD

mantheman

Cadet
Joined
Jul 9, 2022
Messages
2
I am currently using SSD as boot drive for TruenNAS Scale. I wanted to use a new m.2 drive for the OS for a new system and I wanted to Clone my current Truenas to the new M.2 Drive. The New SSD is ready to be plugged in the current NAS for cloning.
How do I do this?
 

martian9000

Cadet
Joined
Nov 21, 2023
Messages
4
I recently had to move TrueNAS SCALE to a new drive due to a failing boot drive. The "backup current config and restore on fresh install" process worked like a charm for me. It successfully transferred over every customization I made since install (users, services, BB backup, network bridge, VMs, scrub schedules, etc). I suspect anything you customize outside of the TrueNAS GUI would not transfer over (manually set cron jobs, third party packages, etc.). I'm basing these instructions on TrueNAS-SCALE-22.12.3.3. Caveat emptor, I'm still somewhat of a novice and TrueNAS can be finicky.

  1. Navigate to Settings-->General in the TrueNAS GUI
  2. Click Manage Configuration-->Download File
  3. I chose the "Export Password Secret Seed" option
  4. Power off system and unplug old drive
  5. Install TrueNAS to the new M.2 drive
  6. On first boot after install, navigate once again to General Settings
  7. This time, click Configuration-->Upload File
  8. Follow the prompts, reboot, and enjoy
For me this process was significantly easier than screwing around with disk imaging/cloning tools. Keep the old drive with original install handy just in case things go weird. Oh, and treat the downloaded config file like you would any other secrets like passwords, SSH keys, etc. The file contains passwords for any users you have configured, amongst other sensitive things.
 
Top