seafile客户端安装使用


centos

Add the repo

sudo cat > /etc/yum.repos.d/seafile.repo <<EOF
[seafile]
name=seafile
baseurl=https://linux-clients.seafile.com/seafile-rpm/centos7
gpgcheck=0
enabled=1
EOF

Install Seafile Client

sudo yum install -y epel-release

sudo yum install -y seafile --enablerepo=cr
"/media/nas/seafile/seafile-server-8.0.3/seafile.sh" start

"/media/nas/seafile/seafile-server-8.0.3/seahub.sh" start
"/media/nas/seafile/seafile-server-8.0.3/seahub.sh" restart

# 删除seafile缓存
rm -rf /tmp/seahub_cache/*

readlink 获取软连接的真实路径
# 修改头像
/media/nas/seafile/seahub-data/avatars/


nohup /usr/local/node/bin/node /www/im/chat.js >> /usr/local/node/output.log 2>&1 &


nginx -s reload

seaf-cli start

# 获取仓库列表
seaf-cli list-remote -s [服务器地址] -u [用户名] -p [密码]
ping 
# 列出同步
seaf-cli list

# 开启同步
seaf-cli sync -l [Library ID] -s [服务器地址] -d /home/www/sea/zhangsan/ -u [用户名] -p [密码]

# 解除同步
seaf-cli desync -d /home/www/sea/zhangsan/

# 查看状态
seaf-cli status

cd "/media/nas/Blog/beimingxinglian.github.iox/"
seaf-cli sync -l 2e29a94a-e895-4e1f-b8ff-676ba5c88f98 -s https://seafile.tdxinglian.com: -d /Blog -u 账号 -p 密码

评论
  目录