{"id":24362,"date":"2023-04-06T21:28:26","date_gmt":"2023-04-06T19:28:26","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=24362"},"modified":"2023-07-21T15:35:52","modified_gmt":"2023-07-21T13:35:52","slug":"microsoftbackup-and-restore-your-distribution-on-wsl","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/","title":{"rendered":"Microsoft:Backup and restore your distribution on WSL"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-introduction\">Introduction<\/h2>\n\n\n\n<p>Hi team<\/p>\n\n\n\n<p>I hope you are doing well, in a previous post, we have seen how to enable  <strong>Windows Subsystem<\/strong> to install  <strong>Linux distribution<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-folder-to-store-your-backups\">Create a folder to store your backups<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\" alt=\"\" class=\"wp-image-24901\" width=\"966\" height=\"821\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png 831w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023-300x255.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023-768x652.png 768w\" sizes=\"auto, (max-width: 966px) 100vw, 966px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect to <strong>Powershell<\/strong><\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create the directory to store data using command line<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Users\\nso&gt;mkdir \"your directory\"<\/code><\/pre>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PS C:\\Users\\nso&gt;mkdir \"C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/mkdir.png\" alt=\"\" class=\"wp-image-24366\" width=\"967\" height=\"232\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/mkdir.png 861w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/mkdir-300x72.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/mkdir-768x185.png 768w\" sizes=\"auto, (max-width: 967px) 100vw, 967px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Or create it manually by using the Windows browser <\/li>\n<\/ul>\n\n\n\n<p>Right-click:<\/p>\n\n\n\n<p>New\/Folder\/your directory name<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"637\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL3-1024x637.png\" alt=\"\" class=\"wp-image-24369\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL3-1024x637.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL3-300x187.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL3-768x478.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL3.png 1199w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BG102052023-1.png\" alt=\"\" class=\"wp-image-24898\" width=\"858\" height=\"762\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BG102052023-1.png 794w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BG102052023-1-300x266.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BG102052023-1-768x682.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-identify-the-distribution-name-you-want-to-backup\">Identify the distribution name you want to backup <\/h2>\n\n\n\n<p>In your <strong>Powershell <\/strong>prompt type the below command to display all installed distribution on <strong>WSL<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>See the <strong>wsl <\/strong>utility help:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso&gt;<\/strong> wsl -h<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"857\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL1.png\" alt=\"\" class=\"wp-image-24372\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL1.png 834w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL1-292x300.png 292w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL1-768x789.png 768w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>As explained in the help part. the <strong>&#8211;list<\/strong> or <strong>-l<\/strong> will list the distribution , you can also list all the distribution <strong>&#8211; &#8211; all<\/strong>  which are installing or uninstalling and also the  <strong>&#8211; &#8211; running<\/strong> listing the current running distribution <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL2.png\" alt=\"\" class=\"wp-image-24371\" width=\"982\" height=\"415\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL2.png 833w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL2-300x127.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL2-768x325.png 768w\" sizes=\"auto, (max-width: 982px) 100vw, 982px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Here we can see the distribution is <strong>openSUSE-leap-15.4<\/strong> , we will use this specific name to perform our Backup <\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-export-your-distribution\">Export your distribution <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the export command listed in the <strong>wsl <\/strong>help <\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL5argexport.png\" alt=\"\" class=\"wp-image-24375\" width=\"895\" height=\"919\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL5argexport.png 830w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL5argexport-292x300.png 292w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL5argexport-768x788.png 768w\" sizes=\"auto, (max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Browse to the directory you created for you backups<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso&gt;<\/strong> cd \"C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION\"\n\n<strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL6cdPATH.png\" alt=\"\" class=\"wp-image-24377\" width=\"972\" height=\"343\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL6cdPATH.png 951w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL6cdPATH-300x106.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL6cdPATH-768x271.png 768w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use the export command <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong> wsl --export openSUSE-Leap-15.4 openSUSE-Leap-15.4_BACKUP_03042023.tar<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL7expcmd.png\" alt=\"\" class=\"wp-image-24378\" width=\"987\" height=\"343\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL7expcmd.png 953w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL7expcmd-300x105.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL7expcmd-768x268.png 768w\" sizes=\"auto, (max-width: 987px) 100vw, 987px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Wait few minutes during the export<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check if the Tar file is generated in the folder<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong>dir<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL8check.png\" alt=\"\" class=\"wp-image-24381\" width=\"1011\" height=\"355\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL8check.png 948w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL8check-300x105.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL8check-768x270.png 768w\" sizes=\"auto, (max-width: 1011px) 100vw, 1011px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check on your browser also if you want to ensure if all is fine regarding the file size<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL9check-1024x487.png\" alt=\"\" class=\"wp-image-24382\" width=\"972\" height=\"462\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL9check-1024x487.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL9check-300x143.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL9check-768x366.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/BACKUPWSL9check.png 1481w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Seems that all is OK and we have saved the status of our Distribution <\/li>\n<\/ul>\n\n\n\n<p>It will be useful if something is going wring during your soft installations or simply using it to do some admin tasks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-remove-the-instance\">How to remove the instance <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prerequisite <\/li>\n<\/ul>\n\n\n\n<p>if you are going to import this backup on another PC then you will not have no problem using the coming command<\/p>\n\n\n\n<p>In the other case if you want to perform this import on the you own machine where the distribution is installed , you will have to remove the existing instance<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove the instance from the command line<code> <\/code><\/li>\n<\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwsl --unregister &quot;distribution name&quot; \n<\/pre><\/div>\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong> wsl --unregister openSUSE-Leap-15.4 <\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/unreg2-1024x232.png\" alt=\"\" class=\"wp-image-24401\" width=\"938\" height=\"212\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/unreg2-1024x232.png 1024w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/unreg2-300x68.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/unreg2-768x174.png 768w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/unreg2.png 1118w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove the instance from Windows GUI<\/li>\n<\/ul>\n\n\n\n<p>Select <strong>&#8220;Applications and features&#8221;<\/strong> in the <strong>Windows <\/strong>search bar<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"833\" height=\"685\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGgg102052023.png\" alt=\"\" class=\"wp-image-24902\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGgg102052023.png 833w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGgg102052023-300x247.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGgg102052023-768x632.png 768w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select the distribution you want to remove and click on <strong>uninstall <\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/appandfeats.png\" alt=\"\" class=\"wp-image-24395\" width=\"894\" height=\"802\" srcset=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/appandfeats.png 813w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/appandfeats-300x269.png 300w, https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/04\/appandfeats-768x689.png 768w\" sizes=\"auto, (max-width: 894px) 100vw, 894px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Check if distribution is removed by using the below command<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong> wsl -l<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-import-your-distribution\"><strong>Import your distribution <\/strong><\/h2>\n\n\n\n<p>To import your file, you have to specificity the name and the location where you want to import your distribution <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nwsl --import (distribution_name) (install_location) (file_path)\n<\/pre><\/div>\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong> wsl --import openSUSE-Leap-15.4_BACKUP_03042023.tar C:\\wsl \"C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION\\openSUSE-Leap-15.4_BACKUP_03042023.tar\"<\/code><\/pre>\n\n\n\n<p>Wait few minute for your distribution  to be installed and available to work.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You can check if your distribution is now available <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code><strong>PS C:\\Users\\nso\\BACKUP FOR WSL DISTRIBUTION&gt;<\/strong> wsl -l<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion:<\/h2>\n\n\n\n<p>Now you know how to backup and restore you distribution using <strong>WSL <\/strong>( I made all these action on Windows 10 machine but it works also on Windows 11 )<\/p>\n\n\n\n<p>By using export and import , you can have the same environment set up on multiple machines easily and within few minutes .<\/p>\n\n\n\n<p>All Your credentials and user account  will be saved, same for the packages you installed, it&#8217;s a kind of snapshot on <strong>VMWARE <\/strong>or <strong>VirtualBOX <\/strong>\ud83d\ude42<\/p>\n\n\n\n<p>Note that you can&#8217;t import a distribution you are already using ( same name , same file ) , otherwise you will have some conflicts, so bare in mind you will have to remove the previous distribution before making your import!<\/p>\n\n\n\n<p>Feel free to visit , check and share the <a href=\"https:\/\/www.dbi-services.com\/blog\/\">dbi bloggers<\/a> and also <a href=\"https:\/\/www.dbi-services.com\/blog\/author\/nabilsaoual\/page\/5\/\">my other topics<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Hi team I hope you are doing well, in a previous post, we have seen how to enable Windows Subsystem to install Linux distribution. Create a folder to store your backups Example: Right-click: New\/Folder\/your directory name Identify the distribution name you want to backup In your Powershell prompt type the below command to display [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[42],"tags":[49,2165],"type_dbi":[],"class_list":["post-24362","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-microsoft","tag-wsl-2"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Microsoft:Backup and restore your distribution on WSL - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Microsoft:Backup and restore your distribution on WSL\" \/>\n<meta property=\"og:description\" content=\"Introduction Hi team I hope you are doing well, in a previous post, we have seen how to enable Windows Subsystem to install Linux distribution. Create a folder to store your backups Example: Right-click: New\/Folder\/your directory name Identify the distribution name you want to backup In your Powershell prompt type the below command to display [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-06T19:28:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-21T13:35:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\" \/>\n<meta name=\"author\" content=\"Middleware Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Middleware Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\"},\"author\":{\"name\":\"Middleware Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"headline\":\"Microsoft:Backup and restore your distribution on WSL\",\"datePublished\":\"2023-04-06T19:28:26+00:00\",\"dateModified\":\"2023-07-21T13:35:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\"},\"wordCount\":522,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\",\"keywords\":[\"Microsoft\",\"WSL 2\"],\"articleSection\":[\"Operating systems\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\",\"name\":\"Microsoft:Backup and restore your distribution on WSL - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\",\"datePublished\":\"2023-04-06T19:28:26+00:00\",\"dateModified\":\"2023-07-21T13:35:52+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\",\"contentUrl\":\"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Microsoft:Backup and restore your distribution on WSL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1\",\"name\":\"Middleware Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g\",\"caption\":\"Middleware Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Microsoft:Backup and restore your distribution on WSL - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/","og_locale":"en_US","og_type":"article","og_title":"Microsoft:Backup and restore your distribution on WSL","og_description":"Introduction Hi team I hope you are doing well, in a previous post, we have seen how to enable Windows Subsystem to install Linux distribution. Create a folder to store your backups Example: Right-click: New\/Folder\/your directory name Identify the distribution name you want to backup In your Powershell prompt type the below command to display [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/","og_site_name":"dbi Blog","article_published_time":"2023-04-06T19:28:26+00:00","article_modified_time":"2023-07-21T13:35:52+00:00","og_image":[{"url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png","type":"","width":"","height":""}],"author":"Middleware Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Middleware Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/"},"author":{"name":"Middleware Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"headline":"Microsoft:Backup and restore your distribution on WSL","datePublished":"2023-04-06T19:28:26+00:00","dateModified":"2023-07-21T13:35:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/"},"wordCount":522,"commentCount":0,"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png","keywords":["Microsoft","WSL 2"],"articleSection":["Operating systems"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/","url":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/","name":"Microsoft:Backup and restore your distribution on WSL - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage"},"thumbnailUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png","datePublished":"2023-04-06T19:28:26+00:00","dateModified":"2023-07-21T13:35:52+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#primaryimage","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/sites\/2\/2023\/05\/BGg102052023.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/microsoftbackup-and-restore-your-distribution-on-wsl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Microsoft:Backup and restore your distribution on WSL"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/8d8563acfc6e604cce6507f45bac0ea1","name":"Middleware Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ddcae7ba0f9d1a0e7ae707f0e689e4a9c95bb48ec49c8e6d9cc86d43f4121cb6?s=96&d=mm&r=g","caption":"Middleware Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/middleware-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/24362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=24362"}],"version-history":[{"count":32,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/24362\/revisions"}],"predecessor-version":[{"id":26908,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/24362\/revisions\/26908"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=24362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=24362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=24362"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=24362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}