How to synchronize with Microsoft OneDrive in Linux

Source: Internet
Author: User
Tags microsoft onedrive

How to synchronize with Microsoft OneDrive in Linux

[Editor's note]: shortly after the translation of this article is completed, OneDrive became the yellow flower of the Chinese people yesterday. The editor thought about it and sent it out to remember the one we passed away, the one we passed, and the ones and those. Maybe a few years later, we recalled that we had so many of them, but at that time we had no choice but to cherish them. If we had to give me another chance ......

OneDrive (formerly SkyDrive) is a popular cloud storage product of Microsoft. Currently, OneDrive provides 7 GB free storage space for each newly registered user. As you might think, OneDrive is well integrated with other Microsoft software products. Microsoft also provides an independent OneDrive client that automatically backs up pictures and videos taken by cameras to OneDrive. But guess what. This client can be used in addition to various Linux PC/mobile platforms.

"OneDrive on any device, anytime "? Oh, no, this is not enough.

But don't be disappointed. The open-source community has come up with solutions. Onedrive-d written by Boilermaker can do this. As a monitoring daemon, onedrive-D can automatically synchronize local folders to OneDrive cloud storage.

I in this tutorial, I will introduce how to use onedrive-d to synchronize Microsoft OneDrive on Linux.

Install onedrive-d on linux

Although onedrive-d was initially developed for Ubuntu/Debian, it still supports CentOS/Fedora/RHEL.

Installation is as easy as entering the following command.

  1. $ Git clone https://github.com/xybu92/onedrive-d.git
  2. $ Cd onedrive-d
  3. $./Inst install
First Configuration

After the installation, You need to perform one-time configuration to grant onedrive-d read/write permissions to your OneDrive account.

First, create a local folder that will be used to synchronize to a remote OneDrive account.

  1. $ Mkdir ~ /Onedrive

Run the following command to enable one-time configuration.

  1. $ Onedrive-d

It will pop up the following onedrive-d settings window. In the "Location" option, select the local folder you created earlier. In the "Authentication" option, You will see information about "You have not authenticated OneDrive-d yet" ("You have not authorized OneDrive-d. Click Connect to OneDrive.com.

It will pop up a new window asking you to log on to OneDrivecom.

After logging on to OneDrive.com, you are required to authorize onedrive-d access. Select "Yes ".

Return to the previous settings window and You will see that the previous status has changed to You have connected to OneDrive.com "(" You have connected to OneDrive.com "). Click OK.

Synchronize a local folder with OneDrive

There are two ways to use onedrice-d to synchronize the local folder with the OneDrive storage.

One is "manually use the command line to synchronize OneDrive ". That is, when you need to synchronize with your OneDrive account, run the following command:

  1. $ Onedrive-d

Onedrive-d will then scan the local folder and the content of the OneDrive account and synchronize the two. This means either upload a newly added file in the local folder or download the latest found file from the remote OneDrive account. If you delete any files from the local folder, the corresponding files will be automatically deleted after synchronization with the OneDrive account. And vice versa.

Once the synchronization is complete, you can use Ctrl-C to interrupt the front-end process of onedirve-d.

The other method is to use onedrive-d as a always-running daemon to automatically start at startup. In this case, the background daemon monitors both local folders and OneDrive accounts to keep them synchronized. To do this, you just need to add onedrive-D to the list of Automatic startup programs on your desktop.

When onedrive-D runs in the background as a daemon, you will see the OneDrive icon in the desktop status bar, as shown in. Every time a synchronous update is triggered, you will see a desktop notification.

It should be noted that, according to the author, onedrive-d is still under active development. This cannot be used in any form of production environment. If you encounter any bugs, submit a bug report at any time. I would be grateful for your contribution.

Via: http://xmodulo.com/2014/06/sync-microsoft-onedrive-linux.html

Translator: geekpi Proofreader: wxy

This article was originally translated by LCTT and launched with the Linux honor in China

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.