Seafile On-Disk File Storage Recovery Tool
Find a file
2021-04-23 17:33:32 +02:00
checks.go Collect commits 2021-04-21 15:54:50 +02:00
command.go First LS version 2021-04-23 16:44:42 +02:00
commit.go First LS version 2021-04-23 16:44:42 +02:00
config.go Refactor command line utility 2021-04-23 17:33:32 +02:00
fs.go Refactor command line utility 2021-04-23 17:33:32 +02:00
LICENSE.txt WIP Filesystem 2021-04-22 22:43:44 +02:00
README.md Add a note 2021-04-22 16:18:43 +02:00
seafile_recovery.go Refactor command line utility 2021-04-23 17:33:32 +02:00

seafile_recovery

Seafile Recovery.

Usage:
  seafile_recovery [--storage=<sto>] head <repoid>
  seafile_recovery [--storage=<sto>] ls <repoid> <pathid>
  seafile_recovery [--storage=<sto>] dump <repoid> <pathid>
  seafile_recovery [--storage=<sto>] s3 <repoid> <pathid> <bucket>
  seafile_recovery (-h | --help)

Options:
  -h --help  Show this screen
  --storage=<sto>  Set Seafile storage path [default: ./storage]

Dev notes

Should look how Seafile handles ID collision, it might be one here in a repo with 44592 commits:

$ ls -lah
62684fe2260d67b6b5d2de909c3816feb21c39	bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e	       ffc4e7f4273c8e4cc57124ccb6d65467c3b6a3
641064a61de537a696f2172e90be9c8ac4ae04	bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e.8WWPVZ
$ ls -lah bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e.8WWPVZ
-rw------- 1 1000 1000 0 Jan 12  2019 bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e.8WWPVZ
% ls -lah bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e       
-rw------- 1 1000 1000 629 Jan 12  2019 bd8d7b2df788bf8bb6efc87ddb52c6f595ea7e