I wrote a powershell script which seems to have resolved the issue for now.
But I brought up the GUI and did NOT contained what was kicked off in the powershell script.
Is there a reason why the CLI and GUI not intergrated together? That what it seems like to me.
BTW, I left out OS details I was backing up Windows 11 Pro.
Below is the powershell script.
================================
Kopia Backup Script (Fixed Compatibility)
================================
$SourceUser = $env:USERPROFILE
$RepoPath = “E:\Kopia-bu”
$LogFile = “E:\Kopia-bu\backup.log”
$KopiaExe = “kopia”
---- CONNECT (USES CACHED CREDENTIALS) ----
Write-Host “Connecting to Kopia repository…” -ForegroundColor Yellow
& $KopiaExe repository connect filesystem --path $RepoPath
–log-file $LogFile
if ($LASTEXITCODE -ne 0) {
Write-Host “ERROR: Repository connection failed.” -ForegroundColor Red
exit 1
}
---- FUNCTION ----
function Backup-Path {
param ([string]$Path)
if (Test-Path $Path) {
Write-Host "Backing up $Path..." -ForegroundColor Cyan
& $KopiaExe snapshot create $Path `
--log-file $LogFile
if ($LASTEXITCODE -ne 0) {
Write-Host "FAILED: $Path" -ForegroundColor Red
}
}
}
---- USER DATA ----
$UserFolders = @(
“Desktop”,
“Documents”,
“Pictures”,
“Videos”,
“Music”,
“Favorites”
)
foreach ($folder in $UserFolders) {
Backup-Path -Path (Join-Path $SourceUser $folder)
}
---- APPDATA ----
Backup-Path “$SourceUser\AppData\Roaming”
Backup-Path “$SourceUser\AppData\Local\Packages”
---- SSH ----
Backup-Path “$SourceUser.ssh”
---- POWERSHELL CONFIG ----
Backup-Path “$SourceUser\Documents\PowerShell”
---- CUSTOM PATHS ----
@(
“C:\Scripts”,
“C:\Repos”,
“C:\Tools”
) | ForEach-Object {
Backup-Path $_
}
---- VERIFY ----
& $KopiaExe snapshot list --log-file $LogFile
Write-Host “Backup process finished (check errors above).” -ForegroundColor Green
============ End of Powershell script =====================