没有任何备份重装操作系统后如何恢复数据

在树莓派上部署的seafile,数据放在外挂的移动硬盘上。

安装操作系统的SD卡突然坏掉了,系统启动不起来。之前没有做任何备份,请问有没有办法恢复seafile。

cd seafile-server-latest
./seaf-fsck.sh --export top_export_path [library-id1] [library-id2] …

https://cloud.seafile.com/published/seafile-manual-cn/maintain/seafile_fsck.md

谢谢。原来的目录是/mnt/exdata/seafile-data,安装完操作系统,重新部署seafile时,选择原来的目录“/mnt/exdata/seafile-data”,提示

/mnt/exdata/seafile-data already exists
请问怎么解决

可不可以这样操作:
1、把原来的目录重命名为 “/mnt/exdata/seafile-data1”
2、部署seafile时,seafile data目录填写为“/mnt/exdata/seafile-data”
3、部署seafile后,删除/mnt/exdata/seafile-data目录
4、把“/mnt/exdata/seafile-data1” 重命名为 “/mnt/exdata/seafile-data”
5、启动seafile

请大神指教

除了seafile-data目录中的数据外,还需要mysql数据库中的数据,所以,你这样的方案是不行的,只有用fsck导出seafile-data数据之后,重新部署一个新的seafile服务,然后把这些数据再按需上传