2020的时候曾经装过一次,当时centos7还没有被抛弃,仓库还是畅行无阻的,时过境迁之后只能靠着微弱的希望运行起来,前文提到的安装传送门 https://blog.51cto.com/u_6464430/2483875
1.本次的操作环境
OS:Red Hat Enterprise Linux Server release 7.6 (Maipo)
Seafile-client:6.2.4
2.操作步骤
a.打包之前装好的程序文件、依赖库等
#zip -r seafile.zip /usr/bin/seaf-* /usr/lib64/libseafile.so.0 /usr/lib64/libsearpc.so.1 /usr/lib64/python2.7/site-packages/seafile/* /usr/lib64/python2.7/site-packages/pysearpc/*
b.将上述安装包拷贝到需要的设备解压到对应的目录
c.seafile 客户端初始化及守护进程启动
#mkdir ~/seafile-client
#seaf-cli init -d ~/seafile-client
#seaf-cli start
Starting seafile daemon ...
Started: seafile daemon ...
表明一切正常
d.获取远端的仓库ID
#seaf-cli list-remote -s <seahub-server-url> -u <username> [-p <password>] [-c <config-dir>] [--json]
e.将本地目录与远端目录保持同步
#seaf-cli sync -l <library-id> -s <seahub-server-url> -d <existing-folder> -u <username> [-p <password>]
f.查看同步状态
#seaf-cli status
状态解析:
status meaning
synchronized Local folder is consistent with the remote library
committing Files in local folder are being indexed
initializing Getting sync information from server
downloading file list Downloading file list from server. Progress will be displayed.
downloading files Downloading files from server. Progress will be displayed.
uploading Uploading files to server. Progress will be displayed.
error Error message will be displayed in the progress column.
g.解决nas盘挂载不同步问题
#cd ~/seafile-client/seafile-data/
#sqlite3 repo.db
#INSERT INTO "RepoProperty" VALUES ('$repo-id','sync-interval','$time');
退出后重启生效
使用指导手册:https://help.seafile.com/syncing_client/linux-cli/