Try this.
wsl --export mywsl "D:\backup$today"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I wish I can automate my backups by running automated script every night to back my wsl container, so
I tried to create a ps1 file
$today = Get-Date -Format "ddmmyyHHmm"
wsl --export mywsl "D:\backup"$today
The above generates an error , directory or file is not formated. so how to pass filename to the wsl --export command?
thanks.
Try this.
wsl --export mywsl "D:\backup$today"