Page 1 of 1

Backup failed get error message.

Posted: Wed 14. Sep 2022, 05:23
by akong77
Hello,
I backup keyhelp and set keep seven days.But it's fail third day.It' has error message.
Failed to create backup: Fatal: Unmarshal: invalid character 'w' after top-level value


How to fix it?

Re: Backup failed get error message.

Posted: Wed 14. Sep 2022, 09:29
by Alexander
You can have a look into <path-to-repository>/keys/ and view the file inside (do not post it here, it contains sensible data). It should contain a valid JSON string. It may got corrupted on your system.

Easy fix, just add a new repository and remove the corrupt one.

Also Restic offers various commands to repair a corrupt repository, you can try that too. More information can be found at restic.net or their forums: https://forum.restic.net/