./seaf-fsck.sh use cases


When we only have seafile-data directory and lose all other SeaFile
directories (especially conf files), it appears that “./seaf-fsck.sh
–export” command can export all the uncrypted libraries (many thanks
for your answer Daniel Pan).

I reinstall a completly new SeaFile (with new passwords).
Unfortunately, the command “./seaf-fsck.sh --export ./storage/blocks/*”
gives this error : (…) fsck.c(589): Invalid repo id (…)
So where is the “repo id” in the directory seafile-data ?

Your command is wrong. As per the docs, the correct syntax is:

  ./seaf-fsck.sh --export top_export_path [library-id1] [library-id2] ...

The argument top_export_path is a directory to place the exported files. Each library will be exported as a sub-directory of the export path. If you don't specify library ids, all libraries will be exported.

I try tonight the command (./seaf-fsck.sh --export /home/[user]/tmp/ with tmp/ has destination of exported files) and that’s not work.

I remember you that I lost all configuration files and I only saved the directory seafile-data (hereafter “old unencrypted SeaFile Librairies”). I reinstalled completly SeaFile (with new passwords). Everything works fine today regarding the new installating (web access, user account, etc.) My aim is to recover my old unencrypted SeaFile Librairies. The command ./seaf-fsck.sh can help me ? If yes, could you explain me how with :

  • The folder /home/[user]/tmp as recovery destination ;

  • The folder/mnt/HDD/seafile-data where old unencrypted SeaFile librairies are stored.

Have a nice day.

Please read Restore from disaster :( and especially https://forum.seafile.com/t/restore-from-disaster/2392/9

That works. Have a nice day.