other:win10wsl
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
other:win10wsl [2022/08/31 11:40] – Started moving 'backup' to the Advanced section jypeter | other:win10wsl [2022/08/31 13:47] – [Creating a backup of a Linux installation] Improved jypeter | ||
---|---|---|---|
Line 1028: | Line 1028: | ||
- | ==== Creating a backup of a Linux installation | + | ==== Creating a backup |
+ | |||
+ | === Backup | ||
You can use '' | You can use '' | ||
- | * used later for restoring the full installation | + | * used later for //restoring// the full installation |
- | * used for relocating the full installation from '' | + | * used for //relocating// the full installation from '' |
+ | 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 used in WSL (and see if it is running, and using //WSL 1// or //WSL 2//) | ||
* < | * < | ||
Line 1046: | Line 1048: | ||
* 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 | + | * 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 | + | * You should use a detailed enough file name for the tar file\\ e.g. WSL_< |
- | * '' | + | * Example: |
- | * 1.4 Gb | + | |
- | * < | + | |
- | + | ||
- | * You can optionally open a new terminal (this will start again WSL+Ubuntu) to get some information about the created file (size and number of saved files/ | + | |
- | * < | + | |
- | + | ||
- | $ ls -ltrh *ubuntu*tar* | + | |
- | 976M Jan 21 2020 < | + | |
- | 2.8G Aug 22 2020 < | + | |
- | 3.4G Feb 24 14:06 < | + | |
- | # Determine | + | * If you are not going to use the backup tar file right away, you can optionally compress it in order to save some space |
- | $ tar tvf <your_login>-20-04-1-full_210224.tar | wc -l | + | |
- | 112711 | + | |
- | $ gzip *ubuntu*.tar | + | === Other types of backup === |
- | $ ls -ltrh *ubuntu*tar* | ||
- | 976M Jan 21 2020 < | ||
- | 1.2G Aug 22 2020 < | ||
- | 1.8G Feb 24 14:06 < | ||
- | </ | ||
==== Restoring or relocating a Linux installation ==== | ==== Restoring or relocating a Linux installation ==== |
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter