MobiGyaan
  • Telecom News
  • Smartphone News
  • OS News
  • Apps
  • Reviews
  • Guides
No Result
View All Result
MobiGyaan
  • Telecom News
  • Smartphone News
  • OS News
  • Apps
  • Reviews
  • Guides
No Result
View All Result
MobiGyaan
No Result
View All Result
Home Guides

How to backup WSL2 Linux distro in Windows 11

by Jeet
January 29, 2022
in Guides
Share on WhatsAppShare on Twitter

Microsoft has introduced the Windows Subsystem for Linux (WSL) on Windows 11 operating system, a feature that was first launched with Windows 10. The WSL has also been upgraded to version 2 (aka WSL2) which comes with performance improvements.

If you have been using the WSL feature to run a Linux virtual machine on your Windows 11 computer, then it’s a good idea to take a backup of the distro, just in case you need it in the future if something goes wrong. Thankfully, Windows operating system allows users to do so.

In this step-by-step guide, we will show you the process to take a backup of your Linux distribution to the location of your choice in the Windows 11 system with wsl command tool for WSL2 using the Command Prompt.

How to backup Linux distro in WSL on Windows 11

Step 1: Open the Start menu on your Windows 11 computer.

Step 2: Search for “Command Prompt” and from the search results, right-click on the app and select the “Run as administrator” option.

Step 3: In the command prompt window, enter the following command which will show the list of available Linux distros on the device.

wsl --list
Step 4: After that, enter the following command to create a backup of the WSL distro:
wsl --export DISTRO-NAME PATH\FILE-NAME.tar

Make sure to change the “DISTRO-NAME” to the actual name of the Linux distro on your system and change the “PATH\FILE-NAME.tar” to the location where you want to store the backup file. If you don’t specify a location and just specify the file name, then the backup file will be stored in the system drive.

Windows 11 WSL2 Linux Distro Backup using Command Prompt

That’s it. After following the above-mentioned steps, you will have successfully exported the Windows Subsystem for Linux (WSL) Linux distro virtual machine in the location specified or in the main system drive.

The backed-up Linux distro can now be imported to a new setup of Windows 10 or Windows 11 system, or to some another computer, and can also be shared with other people.

Do note that when using the wsl.exe tool in the Command Prompt with the –export option to backup the Linux distro, the Linux distribution will lose its integration with the Start menu, and it’ll no longer appear as an item in the “Apps & features” settings.

Tags: Windows 11Windows Subsystem for LinuxWSL
SendTweetShare
Previous Post

Honor to launch Snapdragon 8 Gen 1-powered flagship at MWC 2022

Next Post

How to update all apps using Windows Package Manager in Windows 11

Next Post
Windows Package Manager Client

How to update all apps using Windows Package Manager in Windows 11

  • About Us
  • Advertise
  • Privacy Policy
  • Contact Us

© 2008-2024 - MobiGyaan. All Rights Reserved.

No Result
View All Result
  • About Us
  • Advertise
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Search
  • Submit App
  • Team MobiGyaan
  • Work with us

© 2008-2024 - MobiGyaan. All Rights Reserved.