What is the latest on backup and restore for Windows Terminal settings


SonicMojo

Well-known member
Local time
12:46 PM
Posts
52
OS
Windows 11 PRO 23H2
I am about to rebuild my machine for the first time since 2021 and I am creating a VERY detailed deployment guide to ensure I am back up and running in the most orderly fashion possible.

Right now - I am auditing my Windows Terminal layout - which is heavily customized across the usual different areas:

1738508282123.webp

Now - I have searched out and read all I can on what appears to be "typical" backup/restore for these settings - by copying all three files from here:

%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

state.json
settings.json
elevated-state.json

to a safe location - and then simply copying these 3 back into the default folder above AFTER a new install.

However - I have examined all three of these files in VS Code - and there ain't a lot in here.

Certainly no where near the settings to ensure that say - sliders like this:

1738508660581.webp

Are set correctly during a restore.

Do not see any reference to my color schemes or actually anything in the settings.json file.

So - what am I missing here?

Is it even possible for a 100% failsafe restore - where I can clean install Terminal, apply a backup, open Terminal and have all settings to be exactly where I am right now on my current machine?

S
 

My Computer

System One

  • OS
    Windows 11 PRO 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS
    CPU
    Intel i5-13600K
    Motherboard
    PRIME z790-A
    Memory
    Corsair Vengeance LPX 64GB (2x32GB) (CMK64GX5M2B5600C40)
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    RME UCX-II
    Monitor(s) Displays
    Samsung LN40B530 LCD TV
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung NMVE (990 Pro, 970 EVO)
    PSU
    Seasonic GX750
    Case
    Coolermaster CM-690II
    Cooling
    Noctua
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech M510
    Internet Speed
    1 GBPS+
    Browser
    MS Edge
    Antivirus
    Windows Defender
Let's look at this from a slightly different angle since I am not familiar with saving settings from Terminal...

When you say that you are going to rebuild your system, how do you mean? Are you going to upgrade / replace hardware or do you simply want to reinstall Windows from scratch?

If it is hardware that you are changing, why not simply create a disk image using something like Macrium Reflect and then restore it on the new hardware? Restoration of an image can be done to different hardware, you may simply need to update some drivers and you are good to go with the exception of programs that may need to be deactivated then reactivated on the new hardware.

If your goal is to simply reinstall Windows, why not consider using the "Fix problems using Windows Update" option since this will keep all of your settings?

Image4.webp
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Let's look at this from a slightly different angle since I am not familiar with saving settings from Terminal...

When you say that you are going to rebuild your system, how do you mean? Are you going to upgrade / replace hardware or do you simply want to reinstall Windows from scratch?

If it is hardware that you are changing, why not simply create a disk image using something like Macrium Reflect and then restore it on the new hardware? Restoration of an image can be done to different hardware, you may simply need to update some drivers and you are good to go with the exception of programs that may need to be deactivated then reactivated on the new hardware.

If your goal is to simply reinstall Windows, why not consider using the "Fix problems using Windows Update" option since this will keep all of your settings?

View attachment 124043
This is a full rebuild. New hardware. New OS. New everything.

And yes I do have Macrium here - but I won't be trying to replicate my existing 2021 Windows 10 layout to a machine that will be moving to Win 11.

On the Terminal question - just did a bit more testing - and strangely - I think I spoke too fast. Backing up and restoring these three files DOES seem to work. Given the almost nonexistant text within this Settings.json - I still cannot figure out how these files know to turn these sliders to specific positions etc - but as sparse as these files appear to be - it works.

Good enough for me.

S
 

My Computer

System One

  • OS
    Windows 11 PRO 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS
    CPU
    Intel i5-13600K
    Motherboard
    PRIME z790-A
    Memory
    Corsair Vengeance LPX 64GB (2x32GB) (CMK64GX5M2B5600C40)
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    RME UCX-II
    Monitor(s) Displays
    Samsung LN40B530 LCD TV
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung NMVE (990 Pro, 970 EVO)
    PSU
    Seasonic GX750
    Case
    Coolermaster CM-690II
    Cooling
    Noctua
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech M510
    Internet Speed
    1 GBPS+
    Browser
    MS Edge
    Antivirus
    Windows Defender
This is a full rebuild. New hardware. New OS. New everything.

And yes I do have Macrium here - but I won't be trying to replicate my existing 2021 Windows 10 layout to a machine that will be moving to Win 11.

On the Terminal question - just did a bit more testing - and strangely - I think I spoke too fast. Backing up and restoring these three files DOES seem to work. Given the almost nonexistant text within this Settings.json - I still cannot figure out how these files know to turn these sliders to specific positions etc - but as sparse as these files appear to be - it works.

Good enough for me.

S
Glad to see that you got it sorted out, but for reference, you can easily restore an image to completely different hardware. Works flawlessly. There may be rare cases where it does not work, but if you still have the old machine, no harm, no foul.

However, I can understand if your preference is to do a clean install. That is also my personal preference, but only because I have processes in place that can get me from bare metal to fully configured including all apps, settings - everything - in under 40 minutes.
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Glad to see that you got it sorted out, but for reference, you can easily restore an image to completely different hardware. Works flawlessly. There may be rare cases where it does not work, but if you still have the old machine, no harm, no foul.

However, I can understand if your preference is to do a clean install. That is also my personal preference, but only because I have processes in place that can get me from bare metal to fully configured including all apps, settings - everything - in under 40 minutes.
Yeah - restoring Windows 10 back to this new machine makes little sense considering it's impending demise. But it is probably time to give Win 11 a shot - I have been sitting on the sidelines with this for 3.5 years now.

Would love it if I could get my machine configured with all the apps, custom settings, activations, work connnections, VPNs, data restoration etc etc in 40 minutes. But that is simply not possible. Hence this 29 page guide :)

S
 

My Computer

System One

  • OS
    Windows 11 PRO 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS
    CPU
    Intel i5-13600K
    Motherboard
    PRIME z790-A
    Memory
    Corsair Vengeance LPX 64GB (2x32GB) (CMK64GX5M2B5600C40)
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    RME UCX-II
    Monitor(s) Displays
    Samsung LN40B530 LCD TV
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung NMVE (990 Pro, 970 EVO)
    PSU
    Seasonic GX750
    Case
    Coolermaster CM-690II
    Cooling
    Noctua
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech M510
    Internet Speed
    1 GBPS+
    Browser
    MS Edge
    Antivirus
    Windows Defender
Maybe not in 40 minutes in your scenario, but you could always do the disk image, restorte it to the new machine, install proper drivers, then do an upgrade to 11 which will preserve all your apps, etc. I guess that's only really good if you have tons of customizations, and apps and it would simply be too much of a hassle to install from scratch.

But I really like the fact that you are planning this out very carefully. Too many people rush into things without any proper planning. I'm sure the results will be worth it.

Are you completely new to Win 11 or have you played with it at all?
 

My Computers

System One System Two

  • OS
    Win11 Pro 24H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Kamrui Mini PC, Model CK10
    CPU
    Intel i5-12450H
    Memory
    32GB
    Graphics Card(s)
    No GPU - Built-in Intel Graphics
    Sound Card
    Integrated
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 2TB NVMe SSD
    1 x 4TB NVMe SSD
    1 x 4TB 2.5" SSD
    PSU
    120W "Brick"
    Keyboard
    Corsair K70 Mechanical Keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Maybe not in 40 minutes in your scenario, but you could always do the disk image, restorte it to the new machine, install proper drivers, then do an upgrade to 11 which will preserve all your apps, etc. I guess that's only really good if you have tons of customizations, and apps and it would simply be too much of a hassle to install from scratch.

But I really like the fact that you are planning this out very carefully. Too many people rush into things without any proper planning. I'm sure the results will be worth it.

Are you completely new to Win 11 or have you played with it at all?
Been testing it for 3 years now. Probably ready for a real deployment :)

S
 

My Computer

System One

  • OS
    Windows 11 PRO 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    ASUS
    CPU
    Intel i5-13600K
    Motherboard
    PRIME z790-A
    Memory
    Corsair Vengeance LPX 64GB (2x32GB) (CMK64GX5M2B5600C40)
    Graphics Card(s)
    Intel UHD Graphics 770
    Sound Card
    RME UCX-II
    Monitor(s) Displays
    Samsung LN40B530 LCD TV
    Screen Resolution
    1920x1080
    Hard Drives
    Samsung NMVE (990 Pro, 970 EVO)
    PSU
    Seasonic GX750
    Case
    Coolermaster CM-690II
    Cooling
    Noctua
    Keyboard
    Logitech MX Keys
    Mouse
    Logitech M510
    Internet Speed
    1 GBPS+
    Browser
    MS Edge
    Antivirus
    Windows Defender
I am about to rebuild my machine for the first time since 2021 and I am creating a VERY detailed deployment guide to ensure I am back up and running in the most orderly fashion possible.

Right now - I am auditing my Windows Terminal layout - which is heavily customized across the usual different areas:

View attachment 124040

Now - I have searched out and read all I can on what appears to be "typical" backup/restore for these settings - by copying all three files from here:

%LocalAppData%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState

state.json
settings.json
elevated-state.json

to a safe location - and then simply copying these 3 back into the default folder above AFTER a new install.

However - I have examined all three of these files in VS Code - and there ain't a lot in here.

Certainly no where near the settings to ensure that say - sliders like this:



Are set correctly during a restore.

Do not see any reference to my color schemes or actually anything in the settings.json file.

So - what am I missing here?

Is it even possible for a 100% failsafe restore - where I can clean install Terminal, apply a backup, open Terminal and have all settings to be exactly where I am right now on my current machine?

S
@SonicMojo,
To return to your original question about Terminal,
All I have ever backed up was the settings-json as I switched machines and even Terminal versions (Release, Preview, Canary)
For backgrounds/icons, you have to make sure they remain properly pathed with double \.
I am not sure about the color scheme though as I prefer backgrounds to reflect what I am using.

terminal.webp
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    ASUSTeK COMPUTER INC. TUF Gaming FX705GM
    CPU
    2.20 gigahertz Intel i7-8750H Hyper-threaded 12 cores
    Motherboard
    ASUSTeK COMPUTER INC. FX705GM 1.0
    Memory
    24428 Megabytes
    Graphics Card(s)
    Intel(R) UHD Graphics 630 / NVIDIA GeForce GTX 1060
    Sound Card
    Intel(R) Display Audio / Realtek(R) Audio
    Monitor(s) Displays
    Integrated Monitor (17.3"vis)
    Screen Resolution
    FHD 1920X1080 16:9
    Hard Drives
    2 SSD SATA/NVM Express 1.3
    WDS500G2B0A-00SM50 500.1 GB
    WDCSDAPNUW-1002 256 GB
    PSU
    19V DC 6.32 A 120 W
    Cooling
    Dual Fans
    Mouse
    MS Bluetooth
    Internet Speed
    Fiber 1GB Cox -us & 400MB Orange-fr
    Browser
    Edge Canary- Firefox Nightly-Chrome Dev
    Antivirus
    Windows Defender
    Other Info
    VMs of Windows 11 stable/Beta/Dev/Canary
    VM of XeroLinux- Arch based & Debian 12
  • Operating System
    Windows 11 Insider Canary
    Computer type
    Laptop
    Manufacturer/Model
    ASUS X751BP
    CPU
    AMD Dual Core A6-9220
    Motherboard
    ASUS
    Memory
    8 GB
    Graphics card(s)
    AMD Radeon R5 M420
    Sound Card
    Realtek
    Monitor(s) Displays
    17.3
    Screen Resolution
    1600X900 16:9
    Hard Drives
    1TB 5400RPM

Latest Support Threads

Back
Top Bottom