Database corrupt, files intact

What can I do if the database gets corrupt but the files are intact? Should I create a new docker image pointing to the files?

Restore a database backup if possible.

When starting a new container it won’t show any files.

Each library is like a git repository. The database only stores a reference to the current version of each library. In the worst case you could manually recreate the table by searching the commit most recently created in each library.

If that’s no option and there is no backup seaf fsck can be used to export all files. https://manual.seafile.com/maintain/seafile_fsck/#exporting-libraries-to-file-system

1 Like