<commit_before>#rpi-rclone-dropbox

Use your Raspberry Pi to backup/sync your files to Dropbox unattended.  


</br>
###How to create a Dropbox app token  

(1) Create a new API App here https://www.dropbox.com/developers/apps/create  

(2) Click the button to generate a token

![image](img/generate_token.png)

(3) Paste into **conf.txt**  

</br>
###Run it interactively to CLI


````
./run-interactively.sh
````
***OR***

````
docker run -it --rm=true \
	-v /mnt/Seagate/Dropbox:/home/pi/rclone/Dropbox \
	-v conf.txt:/root/.rclone.conf \
	ianscrivener/rpi-rclone-dropbox \
    rclone --transfers=1 -v copy /home/pi/rclone/Dropbox/Photos Dropbox:/Photo
	
````

###Run it as a daemon

````
./run-daemon.sh
````
***OR***

````
docker run -d \
    - t rpi-rclone-dropbox \
	-v /mnt/Seagate/Dropbox:/home/pi/rclone/Dropbox \
	-v conf.txt:/root/.rclone.conf \
	ianscrivener/rpi-rclone-dropbox \
    rclone --transfers=1 -v copy /home/pi/rclone/Dropbox/Photos Dropbox:/Photo
	
````


###Build it
````
./build.sh
````
***OR***

````
docker build --tag=my/rpi-rclone-dropbox .
	
````


###Thanks  
Standing on the shoulders of giants;

**[<NAME>'s](https://github.com/ncw)** excellent **rclone** utility written in Go - [rclone](http://rclone.org/) 

**[Hypriot's](http://http://blog.hypriot.com/)** Go Docker image for Raspberry Pi - [rpi-golang](https://hub.docker.com/r/hypriot/rpi-golang/)  
<commit_msg>initial commit<commit_after>#rpi-rclone-dropbox

Use your Raspberry Pi to backup/sync your files to Dropbox unattended.  


</br>
###Get this code  
````
git clone <EMAIL>:ianscrivener/rpi-rclone-dropbox.git
cd rpi-rclone-dropbox
````

</br>
###Create a Dropbox app token  

(1) Create a new API App here https://www.dropbox.com/developers/apps/create  

(2) Click the button to generate a token

![image](img/generate_token.png)

(3) Paste into **conf.txt**  

</br>
###Run it interactively to CLI


````
./run-interactively.sh
````
***OR***

````
docker run -it --rm=true \
	-v /mnt/Seagate/Dropbox:/home/pi/rclone/Dropbox \
	-v conf.txt:/root/.rclone.conf \
	ianscrivener/rpi-rclone-dropbox \
    rclone --transfers=1 -v copy /home/pi/rclone/Dropbox/Photos Dropbox:/Photo
	
````

###Run it as a daemon

````
./run-daemon.sh
````
***OR***

````
docker run -d \
    - t rpi-rclone-dropbox \
	-v /mnt/Seagate/Dropbox:/home/pi/rclone/Dropbox \
	-v conf.txt:/root/.rclone.conf \
	ianscrivener/rpi-rclone-dropbox \
    rclone --transfers=1 -v copy /home/pi/rclone/Dropbox/Photos Dropbox:/Photo
	
````


###Build it
````
./build.sh
````
***OR***

````
docker build --tag=my/rpi-rclone-dropbox .
	
````

</br>
###Thanks  
Standing on the shoulders of giants;

**[<NAME>'s](https://github.com/ncw)** excellent **rclone** utility written in Go - [rclone](http://rclone.org/) 

**[Hypriot's](http://http://blog.hypriot.com/)** Go Docker image for Raspberry Pi - [rpi-golang](https://hub.docker.com/r/hypriot/rpi-golang/)  

{'fraction_non_alphanumeric': 0.2014388489208633, 'fraction_numerical': 0.0034258307639602604, 'mean_word_length': 3.3067846607669615, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '32999', 'n_tokens_mistral': 1214, 'n_tokens_neox': 1118, 'n_words': 243}