# Once; repeat separately with destination B and its drive.
& {
  $ErrorActionPreference = 'Stop'
  $backupVolume = 'E:\'
  $repo = Join-Path $backupVolume 'FRAME_BACKUP'
  if (!(Test-Path -LiteralPath $backupVolume)) { throw 'Destination is missing.' }
  if (Test-Path -LiteralPath $repo) { throw 'Folder exists.' }
  & restic.exe -r $repo init
  if ($LASTEXITCODE -ne 0) { throw 'Initialization failed.' }
}
