Posted July 23, 2023

ETA - I suppose, I should probably make a rolling backup of the manifest, for update, to avoid situations like this.

copy gog-manifest.dat gog-manifest-%date:~6,4%%date:~3,2%%date:~0,2%.bak
This effectively creates one backup per day (for days I use gogrepoc), which has proven a good compromise solution. Once every couple of months, I just delete older backups.
Copy-Item : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'Destination'. Specified method is not supported.
At line:1 char:23
+ ... y gog-manifest.dat gog-manifest-%date:~6,4%%date:~3,2%%date:~0,2%.bak
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Copy-Item], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.CopyItemCommand