Aktionen

Seafile Terminal Client - Installation und Synchronisation unter Ubuntu 14.04.x LTS

Aus znilwiki

Die druckbare Version wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.

Nachfolgend läuft der Seafile Terminal Client als Benutzer root.
Ich benutze den Client um Datenbank-Dumps zu sichern und auf andere Server zu synchronisieren.

Root werden:

sudo -i

Voraussetzungen installieren:

apt-get install python2.7 python-setuptools python-simplejson python-imaging sqlite3 autoconf automake libtool libevent-dev libcurl4-openssl-dev libgtk2.0-dev uuid-dev intltool libsqlite3-dev valac libjansson-dev libqt4-dev cmake libfuse-dev

Herunterladen, entpacken und kopieren:

cd /usr/src
wget https://bintray.com/artifact/download/seafile-org/seafile/seafile-cli_4.3.2_x86-64.tar.gz
tar xzfv seafile-cli_4.3.2_x86-64.tar.gz
cd seafile-cli-4.3.2
cp -r -f * /usr/local/bin/

Benutzerverzeichnis anlegen und Seafile bereitmachen für http-Sync / https-Sync auch mit selbstsignierten Zertifikaten

mkdir ~/seafile-client
seaf-cli init -d ~/seafile-client
seaf-cli start
seaf-cli config -k disable_verify_certificate -v true
seaf-cli config -k enable_http_sync -v true
seaf-cli stop
seaf-cli start

Seafile beim Booten des Servers starten:

nano /usr/local/bin/seafile-client-starter.sh

mit folgendem Inhalt:

#!/bin/sh
set -e
/usr/local/bin/seaf-cli start

dann

chmod +x /usr/local/bin/seafile-client-starter.sh
crontab -e

und dort folgende Zeile eintragen:

@reboot sleep 180 && /usr/local/bin/seafile-client-starter.sh 2>&1 > /dev/null



Bedienung erfolgt mit dem

seaf-cli

Befehl. Eine Bibliothek kopiert man sich nach lokal mit:

seaf-cli download -l "the id of the library" -s  "the url + port of server" -d "the folder where the library folder will be downloaded" -u "username on server" -p "password"

Will man eine Synchronisation so wählt man:

seaf-cli sync -l "the id of the library" -s  "the url + port of server" -d "the folder where the library folder will be downloaded" -u "username on server" -p "password"


Die ID der Library (Bibliothek) erhält man wenn man diese im Webbrowser aufruft und die Zahl hinter /repo/ kopiert.


Loading comments...