From 992ebd6476e0e70aac3fd798f2cd5540f628fc31 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 26 Sep 2022 19:34:59 +0200 Subject: [PATCH] getdate included in createbackup --- CreateBackup.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CreateBackup.ps1 b/CreateBackup.ps1 index f85f613..9abf456 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.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