This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requirements: | |
## install google drive for desktop | |
## Install 7z.exe | |
## 7z.exe must be in your Path env variable | |
# Define your parameters | |
$wslDist = "<your_wsl_name>" # WSL Distribution | |
$tempDirectory = [System.IO.Path]::GetTempPath() | |
$backupFolder = "G:\My Drive\backup\Wsl\$($wslDist)" # Backup destination | |
$date = Get-Date -Format "yyyyMMddHHmm" |