Sign inSign up

olegfiksel/docker-onedrive

By olegfiksel

•Updated almost 7 years ago

Dockerized version of OneDrive Free Client.https://github.com/oleg-fiksel/docker-onedrive

Image
0

4.2K

olegfiksel/docker-onedrive repository overview

⁠Docker-OneDrive

⁠Introduction

This is a useful tool to synchronize your data between OneDrive (personal account only) and any environment that supports Docker. It uses Ubuntu⁠ as base layer and OneDrive Free Client⁠.

⁠Quick Start

mkdir onedrive && cd onedrive && \
  docker run --rm -ti -v `pwd`/config:/root/.config -v `pwd`/data:/root/OneDrive olegfiksel/docker-onedrive onedrive
  • Follow the url displayed
  • Authenticate yourself on Microsoft cloud
  • Copy the link of the downloaded file you get from Microsoft
  • Paste the link in to the console
docker run -d --restart on-failure --name onedrive -v `pwd`/config:/root/.config -v `pwd`/data:/root/OneDrive olegfiksel/docker-onedrive
docker logs -f onedrive

⁠Advanced Use

⁠Step 1 - Register Your App
⁠Step 2 - Retrieve Your Client ID
  • Choose Mobile application in Platforms.
  • The client ID is then available.
⁠Step 3 - Apply the Client ID
  • Create file onedrive.conf in your convenient place with the following content:
client_id = "";
sync_dir = "/onedrive"
skip_file = ".*|~*"
skip_dir = ".*"
  • Copy and paste your client ID to clien_id parameter.
  • For reference of onedrive.conf settings, please see this configuration⁠.
⁠Step 4 - Re-create Docker Containers
docker rm docker-onedrive
docker run -it --restart on-failure --name docker_onedrive
  -v /path/to/onedrive:/onedrive
  -v /path/to/onedrive.conf:/usr/local/etc/onedrive.conf
  olegfiksel/docker-onedrive
  • Follow step 3 and step 4 in Quick Start.

⁠Reference

⁠License

Tag summary

Content type

Image

Digest

Size

60.1 MB

Last updated

almost 7 years ago

docker pull olegfiksel/docker-onedrive