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/BlueOnyx, python 2.6 empêche le fonctionnement de Yum.
Voir procédure pour installer Python 2.6 en parallèle de Python 2.4.
Installation du daemon DropBox
Vérification de la version à installer :
uname -a
- Si i686 --> 32Bit version
- Si x86_64 --> 64Bit version
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