Error while restore backup


this is the problem

My guess is a corrupted backup file.

1 Like

Seems likely. But just possibly the problem is that the backup file has already been uncompressed - perhaps uncompressed when downloaded - and so is not in good shape for the restore.

Check the backup file with

ls -l filename
file filename
gunzip -tv filename
tar tfz filename
1 Like

That seems like the most likey lway that the backup could have been corrupted (given that it was uploaded and not in the same place where it was created). It seems that some browsers and/or OSes “helpfully” uncompress things immediately on download, or otherwise make it hard to tell that it’s been changed.

I think Windows makes it exceptionally hard to tell if that has happened, as it explicitly hides extensions by default.

If you’re using an OS where someone is likely to use those commands, it’s probably unlikely that it’s caused the problem. :wink:

1 Like

Yes, I was supposing a person was logged into their Discourse instance.

If we offer a GUI method to recover a backup, for people unfamiliar with the command line, perhaps that code can include some check on the backup file and at least report the size and type if the uncompression library throws an error.

1 Like

I agree with you