getdate included in createbackup
This commit is contained in:
parent
29c691d083
commit
992ebd6476
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user