Outils personnels

Utilisation de Dropbox en ligne de commande

De wikiGite

Source : https://www.dropbox.com/install?os=lnx

Pré-Requis :

python 2.6 pour pouvoir utiliser le script Dropbox.py

Attention : Sur CentOS 5, python 2.6 empêche yum de fonctionner

Vérification de la version à installer :

uname -a

If the uname output has an i686 at the end you need the 32Bit version and if it has x86_64 you want the 64Bit version.

Installation

The Dropbox daemon works fine on all 32-bit and 64-bit Linux servers. To install, run the following command in your Linux terminal.

mkdir /root/install
cd /root/install

32-bit:

wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86"

64-bit:

wget -O dropbox.tar.gz "http://www.dropbox.com/download/?plat=lnx.x86_64"
  

Décompression de l'archive :

tar -xzvf dropbox.tar.gz
rm dropbox.tar.gz

Next, run the Dropbox daemon from the newly created .dropbox-dist folder.

~/.dropbox-dist/dropboxd

Run dropboxd on your server

~/.dropbox-dist/dropboxd
This client is not linked to any account...
Please visit https://www.dropbox.com/cli_link?host_id=1c1497d78b543178b9349a7c1a8b087a&cl=en_US to link this machine.
Client successfully linked, Welcome!
 

If you're running Dropbox on your server for the first time, you'll be asked to copy and paste a link in a working browser to create a new account or add your server to an existing account. Once you do, your Dropbox folder will be created in your home directory. Download this CLI script to control Dropbox from the command line. For easy access, put a symlink to the script anywhere in your PATH.

Dropbox.py :

wget http://www.dropbox.com/download?dl=packages/dropbox.py
chmod 755 dropbox.py

Status du client Dropbox :

~/.dropbox/dropbox.py status

Installer le daemon DropBox :

./dropbox.py start -i

Paramétrage

  • Changer de répertoire
  • Exclude

Trucs & Astuces