Git Product home page Git Product logo

onedrive's Introduction

OneDrive Free Client

Features:

  • State caching
  • Real-Time file monitoring with Inotify
  • Resumable uploads

What's missing:

  • OneDrive for business is not supported
  • While local changes are uploaded right away, remote changes are delayed.
  • No GUI

Dependencies

Installation

  1. make
  2. sudo make install

Configuration:

You should copy the default config file into your home directory before making changes:

mkdir -p ~/.config/onedrive
cp /usr/local/etc/onedrive.conf ~/.config/onedrive/config`

Available options:

  • client_id & client_secret: application identifiers necessary during the authentication
  • sync_dir: directory where the files will be synced
  • skip_file: any files that match this pattern will be skipped during sync
  • skip_dir: any directories that match this pattern will be skipped during sync

Pattern are case insensitive. * and ? wildcards characters are supported. Use | to separate multiple patterns.

First run

The first time you run the program you will be asked to sign in. The procedure require a web browser.

Service

If you want to sync your files automatically, enable and start the systemd service:

systemctl --user enable onedrive
systemctl --user start onedrive

To see the logs run:

journalctl --user-unit onedrive -f

Usage:

onedrive [OPTION]...

no option    Sync and exit.
-m --monitor Keep monitoring for local and remote changes.
	--resync Forget the last saved state, perform a full sync.
-v --verbose Print more details, useful for debugging.
-h    --help This help information.

Notes:

  • After changing the filters (skip_file or skip_dir in your configs) you must execute onedrive --resync
  • Windows naming conventions apply
  • Use make debug to generate an executable for debugging

onedrive's People

Contributors

skilion avatar astanin avatar jlcs-es avatar jonathonma avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.