distro_name included in {}

This commit is contained in:
Roger Sikorski 2022-09-26 19:38:00 +02:00
parent 992ebd6476
commit 747767f503
Signed by: RogerSik
GPG Key ID: 207958C85208EAC4

View File

@ -4,5 +4,5 @@
Write-Output "Creating WSL Backup of distribution $distro_name..." Write-Output "Creating WSL Backup of distribution $distro_name..."
Get-ChildItem -Path $backup_path | Sort-Object LastWriteTime -Descending | Select-Object -Skip 3 | Remove-Item Get-ChildItem -Path $backup_path | Sort-Object LastWriteTime -Descending | Select-Object -Skip 3 | Remove-Item
wsl --export $distro_name $backup_path\$distro_name_$((Get-Date).ToString('yyyy-MM-dd')).tar wsl --export $distro_name $backup_path\${distro_name}_$((Get-Date).ToString('yyyy-MM-dd')).tar
#wsl --export $distro_name $backup_path\$distro_name.tar #wsl --export $distro_name $backup_path\$distro_name.tar