Skip to content

Commit 4c6f7c5

Browse files
authored
refine FAQ about backup to cover move of distros also
I had looked to this page previously for info on how to move distros among drives, but I had not noticed that the answer was implied in the discussion of backing up. So I am proposing here a slight refinement to the question and the answer, to make those points stand out better. This is important for those who may come looking for info when their drive is filling and WSL (the distros and/or their apps) are a culprit.
1 parent 39d3a2f commit 4c6f7c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WSL/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ In some cases turning off the firewall allows for access. In some cases simply h
197197
## How do I access a port from WSL in Windows?
198198
WSL shares the IP address of Windows, as it is running on Windows. As such you can access any ports on localhost e.g. if you had web content on port 1234 you could https://localhost:1234 into your Windows browser.
199199

200-
## How can I back up my WSL distros?
200+
## How can I back up my WSL distros, or move them from one drive to another?
201201

202-
The best way to backup your distros is available in Windows Version 1809 and later. You can export your entire distribution to a tarball using the `wsl --export` command. You can then import this distro back into WSL using the `wsl --import` command, allowing you to backup and save states of your WSL distributions.
202+
The best way to backup or move your distros is via the export/import commands available in Windows Version 1809 and later. You can export your entire distribution to a tarball using the `wsl --export` command. You can then import this distro back into WSL using the `wsl --import` command, which can name a new drive location for the import, allowing you to backup and save states of (or move) your WSL distributions.
203203

204204
Please note that traditional backup services that backup files in your Appdata folders (like Windows Backup) will not corrupt your Linux files.
205205

0 commit comments

Comments
 (0)