Closed srueg closed 2 years ago
The backup was made from stdin and therefore the path doesn't contain any parts: /0c517755-ae0b---894d0e22fa07-mariadb.sql
Oh, yeah that's a use case currently not tested or supported. The PVC restore implicitly expects that the backup is actually from a PVC.
Describe the bug
Wrestic tries to split a path by parts which don't exist. https://github.com/vshn/wrestic/blob/master/restic/restore.go#L167
Additional context
The backup was made from stdin and therefore the path doesn't contain any parts:
/0c517755-ae0b-***-***-894d0e22fa07-mariadb.sql
Logs
If applicable, add logs to help explain your problem.
Expected behavior
If the path doesn't contain any parts, don't try to trim it.
To Reproduce
Steps to reproduce the behavior: