Rclone
This documentation provides comprehensive instructions for installing and configuring Rclone, a powerful command-line program for syncing files and directories to various cloud storage providers.
Prerequisites
Before you begin, make sure you have the following:
- A working internet connection.
- Appropriate permissions to install software on your system.
Installation Steps
Install rclone
Rclone is single executable (rclone, or rclone.exe on Windows) that you can simply download and install from the official website
Alternatively, you can use the Eget binary installer:
-
Eget binary installer
-
Install rclone
Run rclone config
Run the following command to configure Rclone:
Rclone Setup with SFTP
This guide provides step-by-step instructions for configuring Rclone with SFTP.
Prerequisites
Before you start, ensure you have the following:
- A working internet connection.
- Create an ssh key for passwordless login
Configure Rclone
If you’re not using key based password less login , pass in the credentials:
If you have a public key, follow the command below:
Once configured, you can copy files using:
Configure AWS S3 as storage provider
This guide provides step-by-step instructions for configuring Rclone with AWS S3.
Prerequisites
Before you start, ensure you have the following:
- A working internet connection.
- AWS Access Key ID and Secret Access Key.
- AWS bucket with respective policy
Step 1: Create a AWS bucket and add respective policy
- login to aws account and Navigate to S3
- Click the “Create bucket” button.
- Enter a unique and meaningful name for your bucket.
- Choose a region for your bucket.
- Configure other settings as needed and click “Create bucket.”
Navigate to S3:
- In the S3 dashboard, click on the bucket you just created.
- Click on the “Permissions” tab.
- Block public access disable this
- Scroll down to the “Bucket policy” section and click “Edit.”
- Add a bucket policy specifying the permissions. Here’s an example policy
Step 2: Configure Rclone
Run the following command in your terminal to configure Rclone:
Change the values with your values
Start Using Rclone
You can now use Rclone for various operations. For example, to copy local files to your S3 bucket:
Configure OneDrive as storage provider
This guide provides step-by-step instructions for configuring Rclone with Microsoft OneDrive
Creating Client ID for OneDrive Business
This guide provides step-by-step instructions on how to create a Client ID for OneDrive Business to integrate with your application.
Prerequisites
Before you begin, make sure you have the following:
- Microsoft 365 Business account with administrative privileges.
- Access to the Azure portal (https://portal.azure.com/).
1. Log in to the Azure Portal
Visit Azure Portal and log in with your Microsoft 365 Business account.
2. Navigate to Azure Active Directory
In the left navigation pane, select “Azure Active Directory.”
3. App Registrations
Navigate to “App registrations” under the “Manage” section.
4. New Registration
Click on “New registration” to create a new application registration.
5. Configure the Application
-
Name: Provide a name for your application.
-
Supported account types: Accounts in this organizational directory only (Single tenant)
-
Redirect URI: Enter the redirect URI for your application.(http://localhost:53682/)
-
Certificates & secrets: Under manage select Certificates & secrets, click New client secret. Enter a description (can be anything) and set Expires to 24 months. Copy and keep that secret Value for later use (you won’t be able to see this value afterwards).
-
Search and select the following permissions: Files.Read, Files.ReadWrite, Files.Read.All, Files.ReadWrite.All, offline_access, User.Read and Sites.Read.All (if custom access scopes are configured, select the permissions accordingly). Once selected click Add permissions at the bottom.
-
Find YOUR_TENANT_ID of your organization.
In the rclone config, set auth_url to https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/authorize
In the rclone config, set token_url to https://login.microsoftonline.com/YOUR_TENANT_ID/oauth2/v2.0/token
Configure Rclone
Run the following command in your terminal to configure Rclone:
This will guide you through an interactive setup process:
Start Using rclone
You’re now ready to use rclone for managing files on Microsoft OneDrive