other:win10wsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
other:win10wsl [2022/08/31 14:42] – Finished moving the backup section jypeter | other:win10wsl [2022/08/31 14:56] – Moved the restore section to the advanced section jypeter | ||
---|---|---|---|
Line 981: | Line 981: | ||
* Stop //this instance// of Linux (e.g. if it is named // | * Stop //this instance// of Linux (e.g. if it is named // | ||
* or Stop //all// the currently running Linux distributions: | * or Stop //all// the currently running Linux distributions: | ||
- | |||
- | |||
- | ==== Restoring a WSL backup ==== | ||
- | |||
- | FIXME Read [[https:// | ||
- | |||
- | FIXME Check if [[https:// | ||
- | |||
- | This assumes that you have followed the steps above to create a full backup of your Linux distribution in a '' | ||
- | * '' | ||
- | * Note: found a page mentioning that you should be in a terminal with admin rights when using '' | ||
- | * Can we use the same ''< | ||
- | * If we use a new distribution name, it will probably not appear anymore in the Microsoft Store and will not be updated. Is this a problem? | ||
- | * It seems we can use ''< | ||
- | * Can we install out of the current user's Windows folder? | ||
- | * Can we install out of '' | ||
- | * Can we restore (//clone//) a backed up Linux distribution on another Windows 10 computer for another user? | ||
- | * if the default user (and its password) has to be changed, you probably have to follow the steps to [[https:// | ||
Line 1013: | Line 995: | ||
Detailed steps: | Detailed steps: | ||
- | * Determine the name of the current Linux installation used in WSL (and see if it is running, and using //WSL 1// or //WSL 2//) | + | * Determine the name of the current Linux installation(s) used in WSL |
* < | * < | ||
NAME STATE | NAME STATE | ||
Line 1024: | Line 1006: | ||
* Ubuntu | * Ubuntu | ||
* Export the specified Linux installation to a //tar// file: | * Export the specified Linux installation to a //tar// file: | ||
- | * You should export to a directory or external disk where you have //enough// space\\ e.g. The tar file for a [[other: | + | * You should export to a directory or external disk where you have //enough// space\\ e.g. The tar file for a [[other: |
* You should use a detailed enough file name for the tar file\\ e.g. WSL_< | * You should use a detailed enough file name for the tar file\\ e.g. WSL_< | ||
- | * Example: '' | + | * Example: '' |
* If you are not going to use the backup tar file right away, you can optionally compress it in order to save some space | * If you are not going to use the backup tar file right away, you can optionally compress it in order to save some space | ||
* < | * < | ||
- | === Other types of backup | + | === Backup |
You can also just create backups of specific directories: | You can also just create backups of specific directories: | ||
- | * Your Linux //home// directory (''/ | + | * Your Linux //home// directory (''/ |
* <code bash>$ cd /home | * <code bash>$ cd /home | ||
Line 1052: | Line 1034: | ||
* Regular Windows folders where you store data used by WSL: you can use '' | * Regular Windows folders where you store data used by WSL: you can use '' | ||
- | * WARNING: there should not be performance issues using '' | + | * WARNING: there should not be performance issues using '' |
Line 1058: | Line 1040: | ||
When we have a backup in a tar file, we can restore it to the default location (Check ?? FIXME), or specify where we want to restore it. This is a way of moving (relocating) an installation to another disk or partition than the default location '' | When we have a backup in a tar file, we can restore it to the default location (Check ?? FIXME), or specify where we want to restore it. This is a way of moving (relocating) an installation to another disk or partition than the default location '' | ||
+ | |||
+ | ==== Restoring a WSL backup ==== | ||
+ | |||
+ | FIXME Read [[https:// | ||
+ | |||
+ | FIXME Check if [[https:// | ||
+ | |||
+ | This assumes that you have followed the steps above to create a full backup of your Linux distribution in a '' | ||
+ | * '' | ||
+ | * Note: found a page mentioning that you should be in a terminal with admin rights when using '' | ||
+ | * Can we use the same ''< | ||
+ | * If we use a new distribution name, it will probably not appear anymore in the Microsoft Store and will not be updated. Is this a problem? | ||
+ | * It seems we can use ''< | ||
+ | * Can we install out of the current user's Windows folder? | ||
+ | * Can we install out of '' | ||
+ | * Can we restore (//clone//) a backed up Linux distribution on another Windows 10 computer for another user? | ||
+ | * if the default user (and its password) has to be changed, you probably have to follow the steps to [[https:// | ||
+ | |||
+ | |||
==== Uninstalling WSL ==== | ==== Uninstalling WSL ==== | ||
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter