How to Upload to Onedrive via Bash
OneDrive is a cloud-based storage service that is developed by Microsoft. It allows you to store files in a deject deeply and access them from anywhere in the world. The OneDrive service is available for free to everyone who has a Microsoft business relationship.
For Linux users, there is no official desktop client for the Microsoft OneDrive. Hence we suggest an culling 3rd-political party software called Rclone. This app is a command-line based tool used to synchronize all your files to and from the cloud. Rclone tool supports various deject storage services like Amazon Bulldoze, Google Drive, and many other cloud storage services, including the Microsoft OneDrive.
One of the great features of Rclone is that information technology can mount whatsoever of the supported cloud storage services as a file system. But its highly recommended to be careful while using this feature every bit is withal in the experimental phase.
In this guide, we will walk you through the installation of Rclone on Ubuntu. Also, we will evidence you detailed steps on how to mount Microsoft OneDrive as a file system.
Installing Rclone on Ubuntu
Earlier starting, you need to make certain that your system is updated using the next commands:
sudo apt update sudo apt upgrade
At present, yous can download the Rclone binaries from the official Rclone website. Or you install Rclone using the roll command, but get-go, we demand to install curl package on your system.
sudo apt install ringlet
![Install Curl Package](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Install-Curl-Package.png?lossy=1&strip=1&webp=1)
And so install the Rclone using the following command:
scroll https://rclone.org/install.sh | sudo fustigate
![Use Curl To Install Rclone Package](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Use-Curl-To-Install-Rclone-Package.png?lossy=1&strip=1&webp=1)
After the Rclone tool is installed successfully, you should come across a confirmation message in the Terminal.
![Rclone Package Installed Successfully](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Rclone-Package-Installed-Successfully.png?lossy=1&strip=1&webp=1)
Add Microsoft OneDrive Remote To Rclone
As you lot can notice in the output, it suggests running the "rclone config" control to start calculation new remote services.
Step 1. Run the Rclone configuration command that will list multiple options.
rclone config
![Start Rclone Configuration](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Start-Rclone-Configuration.png?lossy=1&strip=1&webp=1)
Pace two. To add a new remote service, enter "n" and so press the Enter key.
![Choose The New Remote Option](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Choose-The-New-Remote-Option.png?lossy=1&strip=1&webp=1)
Pace 3. You volition exist required to enter a new name for the new remote service. Only input the name you need then press the Enter key. (In my case, I take used the "microsoftonedrive" every bit a proper name for the new Microsoft OneDrive service that we are going to create.)
![Give It A Name](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Give-It-A-Name.png?lossy=1&strip=1&webp=1)
Pace iv. Later on pressing the Enter key, you will see a list of all supported cloud storage services. Now you lot need to roll to search for the Microsoft OneDrive service and become the corresponding number.
![List Of Supported Cloud Storage](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/List-Of-Supported-Cloud-Storage.png?lossy=1&strip=1&webp=1)
Step five. As you can see, the corresponding number for the Microsoft OneDrive is 22.
![Search For Microsoft OneDrive Number](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Search-For-Microsoft-OneDrive-Number.png?lossy=1&strip=1&webp=1)
Next, enter the 22 number and press the Enter key.
![Enter The Microsoft One Drive Number](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Enter-The-Microsoft-One-Drive-Number.png?lossy=1&strip=1&webp=1)
Step six. Here you lot will exist required to enter the client_id. There is no need to enter it. Merely go out it blank and press the Enter key.
![Just Press Enter For The Client_ID](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Just-Press-Enter-For-The-Client_ID.png?lossy=1&strip=1&webp=1)
Step 7. Besides, you volition be asked to enter the client_secret, leave information technology blank, and press the Enter key.
![Just Press Enter For The Client_Secret](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Just-Press-Enter-For-The-Client_Secret.png?lossy=1&strip=1&webp=1)
Step 8. In instance y'all demand to edit the advanced configurations, press "y" otherwise cull n" then press the Enter central.
![Edit Advanced Configuration](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Edit-Advanced-Configuration.png?lossy=1&strip=1&webp=1)
Pace 9. In this step, y'all volition be asked to enter the auto-configuration. It's recommended accepting this and press "y" then the Enter key.
![Auto Configuration](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Auto-Configuration.png?lossy=1&strip=1&webp=1)
Step 10. Yous will get a message like the below ane, indicating that your default browser will open automatically.
![Your Default Web Browser Should open automatically](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Your-Default-Web-Browser-Should-open-automatically.png?lossy=1&strip=1&webp=1)
Stride 11. A new tab in your default browser volition be opened, and you volition be asked to enter your Microsoft business relationship details.
![Enter Your Microsoft One Drive Email](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Enter-Your-Microsoft-One-Drive-Email.png?lossy=1&strip=1&webp=1)
Step 12. Now y'all will be asked to allow the Rclone to admission your Microsoft OneDrive account. Press the Enter primal to enable access.
![Allow Access To Rclone](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Allow-Access-To-Rclone.png?lossy=1&strip=1&webp=1)
Step 13. If everything went successfully, you would get a message like the below one.
![Rclone Allowed Successfully](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Rclone-Allowed-Successfully.png?lossy=1&strip=1&webp=1)
Step 14. Now return to the opened concluding and choose your account blazon. In our case, we will select the showtime selection, which is the personal account, and printing the Enter key.
![Choose Your Microsoft One Drive Account Type](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Choose-Your-Microsoft-One-Drive-Account-Type.png?lossy=1&strip=1&webp=1)
Step xv. You will go an account listed, utilize the corresponding number, and press the Enter key.
![Select Drive To Use](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Select-Drive-To-Use.png?lossy=1&strip=1&webp=1)
Step 16. A confirmation message volition be displayed, press "y" then the Enter key.
![Confirm The Selected Drive](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Confirm-The-Selected-Drive.png?lossy=1&strip=1&webp=1)
Step 17. Check the given settings, if it is okay so press y and then the Enter key.
![Confirm Microsoft One Drive Token](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Confirm-Microsoft-One-Drive-Token.png?lossy=1&strip=1&webp=1)
Stride 18. Finally, the Microsoft OneDrive remote service is added successfully. Now you lot tin exit this screen by pressing "q" then the Enter key.
![Microsoft One Drive Added Successfully](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Microsoft-One-Drive-Added-Successfully.png?lossy=1&strip=1&webp=1)
Mount Microsoft OneDrive Using Rclone
In this part of our tutorial, we are going to mountain the Microsoft OneDrive.
Stride 1. Let's create a new directory in your home directory.
mkdir microsoftonedrive
![Create A New Directory](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Create-A-New-Directory.png?lossy=1&strip=1&webp=1)
Step 2. To mount the Microsoft OneDrive, use the next Rclone command.
rclone --vfs-cache-mode writes mount microsoftonedrive: /abode/hendadel/microsoftonedrive
![Mount Microsoft One Drive](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Mount-Microsoft-One-Drive.png?lossy=1&strip=1&webp=1)
Footstep 3. To stop the mounted Microsoft OneDrive, printing the "Ctrl+C" to exit the Rclone service.
Mount Microsoft OneDrive On System Startup
Here we are going to mount the Microsoft OneDrive on system startup.
Step ane. From your installed applications, search for the Startup Applications programme and open information technology.
![Open Startup Applications](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Open-Startup-Applications.png?lossy=1&strip=1&webp=1)
Step 2. Now press the Add button to add a new program to the list.
![Add New Application To Startup](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Add-New-Application-To-Startup.png?lossy=1&strip=1&webp=1)
Step iii. Enter a name for your startup program, and side by side apply the next command in the control field. After submitting all the details, press the Add button.
sh -c "rclone --vfs-cache-manner writes mountain microsoftonedrive: /home/hendadel/microsoftonedrive"
![Enter The Details For Microsoft One Drive](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Enter-The-Details-For-Microsoft-One-Drive.png?lossy=1&strip=1&webp=1)
Step 4. Every bit you can see, Microsoft OneDrive is added to your startup programs.
![Mount Microsoft One Drive On System Startup](https://786647.smushcdn.com/1490832/wp-content/uploads/2019/11/Mount-Microsoft-One-Drive-On-System-Startup.png?lossy=1&strip=1&webp=1)
Congratulations, you have just mounted the Microsoft OneDrive using the Rclone. That's information technology for at present.
Source: https://www.fosslinux.com/24391/how-to-sync-microsoft-onedrive-from-command-line-in-linux.htm
0 Response to "How to Upload to Onedrive via Bash"
Enviar um comentário