From 747767f503cf4c8f8ec3b74df985be2555d42d24 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 26 Sep 2022 19:38:00 +0200 Subject: [PATCH] distro_name included in {} --- CreateBackup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CreateBackup.ps1 b/CreateBackup.ps1 index 9abf456..53f5f23 100644 --- a/CreateBackup.ps1 +++ b/CreateBackup.ps1 @@ -4,5 +4,5 @@ Write-Output "Creating WSL Backup of distribution $distro_name..." 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