weisi / Dropbox-Allowlist

Dropbox Allowlist on Linux Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dropbox-Allowlist

Author: Weisi Dai <weisi@x-research.com>
Date: Jun 4, 2014
license:MIT License

Want to sync only selected directories on your Linux server? Dropbox's selective sync is not enough, because it's a disallowlist strategy rather than a allowlist one.

This utility makes use the dropbox exclude command to implement the allowlist scheme. Actually it tries to exclude all the directories that should be excluded.

It's written in F# so we need the F# compiler fsharpc and the .Net runtime mono.

Quickstart

  1. Clone this repo to a folder, say, ~/dwlist. Go into the directory.

  2. Write a allowlist file and save it to ~/dropbox.wlist using the following format:

    Files/Directory/A
    Files/Directory/B
    Public
    Photos/Alice
    Photos/Bob
    
  3. Build it:

    make
    
  4. Add the crontab entry:

    $ crontab -e
    

    Add the following line:

    * * * * * /path/to/dropbox_wlist_wrapper.sh
    

Assumptions

We assume the Dropbox frontend script is ~/bin/dropbox and the Dropbox folder is ~/Dropbox. If not, modify the corresponding values and rebuild.

About

Dropbox Allowlist on Linux Server

License:MIT License


Languages

Language:F# 91.1%Language:Shell 6.1%Language:Makefile 2.8%