Backup the Porta On Prem WSL virtual disk
このコンテンツはまだ日本語訳がありません。
This guide will walk you through backing up the WSL virtual disk for Porta On Prem data.
- Use the system tray to shut down Docker Desktop.
- After Docker has finished shutting down, open Powershell.
- Run
wsl --shutdownto stop all distributions. - Run
wsl -l -vand ensure the docker distros are stopped. A successful output will look like this:NAME STATE VERSION* Ubuntu-22.04 Stopped 2docker-desktop-data Stopped 2docker-desktop Stopped 2 - Export the
docker-desktop-datadistribution to a.tarfile.-
Open powershell as an administrator.
-
Confirm that
docker-desktop-dataexists and is stopped by running:wsl -l -vA successful output will look like this:
NAME STATE VERSION* Ubuntu-22.04 Stopped 2docker-desktop-data Stopped 2docker-desktop Stopped 2 -
In Powershell, run the following command to export the
docker-desktop-datadistribution to a.tarfile.- In the command, replace
D:\path\to\backupwith your desired backup directory.- This directory must already exist prior to exporting. Create a new directory if necessary.
- Make sure the export destination has enough free disk space.
- The export may take a while if the virtual disk is large (anywhere from 5 to 15 minutes).
-
Terminal window wsl --export docker-desktop-data D:\path\to\backup\docker-desktop-data.tar
- In the command, replace
-
You’ll know the export has finished when the
PS C:\Users\username>prompt appears again on the next line.
-
- Verify the backup file was created successfully.
- Navigate to the backup directory you specified in step 2.
- Confirm that the
docker-desktop-data.tarfile exists. - Check the file size to ensure it’s greater than 0 bytes.