Created
May 28, 2025 20:18
-
-
Save jeriley/eb9f9e1333608de5432430406496714b to your computer and use it in GitHub Desktop.
Backup Baldurs Gate 3 Files
This file contains hidden or 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
# Set-ExecutionPolicy Unrestricted -Scope Process | |
$sourcePath = "C:\Users\<you>\AppData\Local\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\Savegames\Story" | |
$destinationPath = "\\nas\GameBackup\Baldurs Gate 3" | |
$totalFilesCopied = 0 | |
Get-ChildItem -Path $sourcePath -Recurse | ForEach-Object { | |
$destinationFile = Join-Path -Path $destinationPath -ChildPath $_.FullName.Substring($sourcePath.Length) | |
if (-not (Test-Path -Path $destinationFile)) { | |
Copy-Item -Path $_.FullName -Destination $destinationFile -Force | |
Write-Output "Copied: $_.FullName to $destinationFile" | |
$totalFilesCopied++ | |
} else { | |
Write-Output "Skipped: $destinationFile already exists" | |
} | |
} | |
Write-Output "Total files copied: $totalFilesCopied" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment