seafile

http://seafile.com

Client
Windows,
Linux,
Mac
iPhone
Android

刪除一個資料庫

在服務器端刪除一個資料庫後,客戶端上的目錄不會被刪除(只是解除同步)。
客戶端上刪除一個資料庫後,對服務器端沒有影響。

資料庫加密
    
Seafile 客戶端程序會把加密的數據下載到你的電腦之後再用密碼解密

server components

    Ccnet:networking service daemon(Default port: 10001)
    Seafile server:data service daemon(Default port: 12001)
    Seahub:the website (Default port: 8000) (Django)(nginx + python-flup)
    HttpServer: handles raw file upload/download for Seahub (Default port: 8082)
    Controller: monitors ccnet and seafile daemons, restart them if necessary

* persistent connection between client and server,
    
Prerequisites

    python 2.6 or 2.7
    python-setuptools
    python-simplejson
    python-imaging
    sqlite3

    

Setup
=====

cd seafile-server-*
./setup-seafile.sh

After Install:
==========

   haiwen
     --seafile-server-{version} # untar from seafile package
     --seafile-data   # seafile configuration and data (if you choose the default)
     --seahub-data    # seahub data
     --ccnet          # ccnet configuration and data
     --seahub.db      # sqlite3 database used by seahub
     --seahub_settings.py # optional config file for seahub
    
reset pw:
======
reset-admin.sh

upgrade:
======
./seahub.sh stop
./seafile.sh stop

./upgrade_1.2_1.3_server.sh

Garbage Collecting
===============

* de-duplication technology to reduce storage usage

    Different versions of a file may share some data blocks;
    Different libraries may also share some data blocks.
    
* Before running GC, you must shutdown the seafile program on your server.

seafserv-gc -c /data/haiwen/ccnet -d /data/haiwen/seafile-data

#  check whether it mistakenly removed any useful data blocks:
seafserv-gc -c /data/haiwen/ccnet -d /data/haiwen/seafile-data --verify

https
====

seafile-data/seafile.conf
[httpserver]
port=8082
https=true
pemfile=/path/to/pemfile
privkey=/path/to/privkey

ccnet/ccnet.conf
SERVICE_URL = https://www.yourdoamin.com

backup
======

Seafile data are all stored in the haiwen directory, so just back up the whole directory.

 0 3 * * * rsync -azv --delete user@A:/path/to/haiwen /backup/

 
seafile.sh and seahub.sh work fine
=========================

pkill -f seafile-controller
pkill -f "manage.py run_gunicorn"
pkill -f httpserver

Linux
~/.ccnet/logs/ccnet.log for
Windows
C:/users/your_name/ccnet/logs/ccnet.log

This command works same as log onto your seafile.
(make sure the CA is valid for your Android.)
curl -v -d "[email protected]&password=passwd" http://www.youseafile.com/api2/auth-token/

https://github.com/haiwen/seafile/wiki

SparkleShare(http://sparkleshare.org/) {用 Git 作Backend}

 

Creative Commons license icon Creative Commons license icon