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 13:47] – [Creating a backup of a Linux installation] Improved jypeter | other:win10wsl [2022/08/31 14:50] – [Creating a backup] Improved 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: | ||
- | |||
- | |||
- | ==== Creating a backup of the Linux running in WSL ==== | ||
- | |||
- | There are several types of WSL related directories that you may want to back up: | ||
- | |||
- | * <wrap hi>Your Linux //home// directory</ | ||
- | * <code bash>$ cd /home | ||
- | |||
- | $ du -sh $USER | ||
- | 232K < | ||
- | |||
- | # We assume below that there is an existing / | ||
- | # It's a WINDOWS directory C: | ||
- | $ tar cfz / | ||
- | |||
- | # Check the size of the new (and existing old) backup(s) | ||
- | $ ls -ltr / | ||
- | 81K Jan 21 2020 / | ||
- | 93K Aug 22 2020 / | ||
- | 95K Feb 24 12:09 / | ||
- | |||
- | * <wrap hi> | ||
- | |||
Line 1030: | Line 1006: | ||
==== Creating a backup ==== | ==== Creating a backup ==== | ||
- | === Backup of a Full Linux installation === | + | === Backup of a FULL Linux installation === |
You can use '' | You can use '' | ||
Line 1037: | Line 1013: | ||
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 1048: | Line 1024: | ||
* 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: | ||
+ | |||
+ | * Your Linux //home// directory (''/ | ||
+ | * <code bash>$ cd /home | ||
+ | |||
+ | $ du -sh $USER | ||
+ | 232K < | ||
+ | |||
+ | # We assume below that there is an existing / | ||
+ | # It's a WINDOWS directory C: | ||
+ | $ tar cfz / | ||
+ | |||
+ | # Check the size of the new (and existing old) backup(s) | ||
+ | $ ls -ltr / | ||
+ | 81K Jan 21 2020 / | ||
+ | 93K Aug 22 2020 / | ||
+ | 95K Feb 24 12:09 / | ||
+ | |||
+ | * Regular Windows folders where you store data used by WSL: you can use '' | ||
+ | * WARNING: there should not be performance issues using '' | ||
other/win10wsl.txt · Last modified: 2023/12/06 14:24 by jypeter