Shortly after the completion of the translation of this article, OneDrive became Chinese people thing of the past. Ed thought, or issued to stop, only to Commemorate we lost this, that, these and those as well. Maybe a few years later we remember it, we have had so many of those, and then pick and choose, but no treasure, if you give me another chance ......
OneDrive (formerly called SkyDrive) Microsoft is a popular cloud storage products. Currently OneDrive each new registered users 7GB of free storage space. As you might expect, OneDrive and other Microsoft software products integrate well. Microsoft also offers a separate OneDrive client, it will automatically backup camera pictures and videos to OneDrive. But you guessed how. The client can be used in addition to the major PC Linux / mobile platforms.
"OneDrive on any device, any time"? Oh, no, this is not enough.
But do not despair. The open source community has already come up with a solution. Boilermaker write onedrive-d can get the job done. Run as a monitoring daemon, onedrive-D can automatically synchronize the local folder to OneDrive cloud storage.
I In this tutorial, I'll show you how to use Microsoft OneDrive sync onedrive-d on Linux.
Installation onedrive-d on linux
Although onedrive-d initially for Ubuntu / Debian developers, but it still supports CentOS / Fedora / RHEL.
Enter the following command to install just as easy.
$ Git clone https://github.com/xybu92/onedrive-d.git
$ Cd onedrive-d
$ ./inst Install
The first configuration
After installation, you need to configure a one-time grant onedrive-d your OneDrive account read / write permissions.
First, create a local file that will be used for remote synchronization account OneDrive folder.
$ Mkdir ~ / onedrive
Then run the following command to enable one-time configuration.
It will then display the following onedrive-d settings window. In the "Location" option, select the local file folder you created earlier. In the "Authentication" options, you will see "You have not authenticated OneDrive-d yet" ( "You are not authorized to OneDrive-d") of information. Now click "Connect to OneDrive.com" button.
It will pop up a new window to ask you to log OneDrivecom.
After logging OneDrive.com, you will be asked to authorize onedrive-d visit. Select "Yes".
Back to the previous settings window, you'll see the status before has become a You have connected to OneDrive.com "(" You are connected to the OneDrive.com "). Click" OK "to complete.
And OneDrive sync a local folder
There are two ways to use onedrice-d the local folder with OneDrive storage synchronization.
One is "manually using the command line to synchronize OneDrive". It is to run the following command when you need to synchronize with your OneDrive account:
onedrive-d then scans the local folder and the contents of both synchronous and OneDrive account. This means that either uploading a local folder to add new files, or download files from a remote newly discovered OneDrive account. If you delete any file folder from a local file, the corresponding file will be automatically deleted after sync with OneDrive account. vice versa.
Once synchronization is complete, you can use Ctrl-C interrupts the foreground process onedirve-d's.
Another method is to onedrive-d always run as a daemon to start automatically at boot time. In this case, the daemon process will also monitor local folders and OneDrive account, in order to keep them in sync. To do this, simply onedrive-D desktop automatically added to your list of startup programs on the list.
When onedrive-D as a daemon running in the background, you'll see OneDrive icon, as shown below in the desktop status bar. Whenever synchronization update is triggered, you'll see a desktop notifications.
It should be noted: According to the authors point out, onedrive-d is still in active development. This is not available for any kind of production environment. If you have any bug, please submit a bug report at any time. Your contribution, I will be grateful.