Rclone
Jump to navigation
Jump to search
General
General info and support for Rclone.
Rclone DropBox & Nextcloud
rclone sync dropbox:/"Folder Name" nextcloud:/folder_name --verbose
# --dry-run for testingExample AI
Step 1: Installing rclone
First, you need to make sure rclone is installed on your system:
- Open your terminal.
- Install rclone using your package manager. For Red Hat-based systems (like CentOS, Fedora, or RHEL), use: This will install rclone and any required dependencies.
Step 2: Configure rclone for Dropbox
To set up Dropbox in rclone, follow these steps:
- Run
rclone configto start the configuration wizard: - Choose
nfor a new remote when prompted. - Name the remote (e.g.,
dropbox). - When asked to choose the storage type, scroll through the list and select Dropbox by typing the number next to it.
- Follow the prompts:
- You might need to enter an API key if you have one, or you can leave it blank to use
rclone's default. - A link will be provided to authorize
rcloneto access your Dropbox. Follow this link in your web browser, login to your Dropbox account, and allow access. - Once authorized, return to the terminal and proceed as directed.
- You might need to enter an API key if you have one, or you can leave it blank to use
- Finish and exit the configuration wizard.
Step 3: Configure rclone for Nextcloud
Nextcloud uses WebDAV, so the setup is slightly different:
- Run
rclone configagain to add another remote. - Choose
nfor a new remote when prompted. - Name the remote (e.g.,
nextcloud). - For the storage type, select WebDAV by finding it in the list and entering its number.
- Enter the WebDAV URL for your Nextcloud instance: Replace
https://nextcloud.example.comwith your Nextcloud server's URL andUSERNAMEwith your Nextcloud username. - Choose
nextcloudwhen asked for the type of WebDAV. - Input your Nextcloud username and password.
- Finish and exit the configuration.
Step 4: Sync Folder from Dropbox to Nextcloud
Now that both remotes are configured, you can synchronize the folder:
- Identify the path of the folder in Dropbox you wish to sync, such as
/Photos. - Determine the path in Nextcloud where you want the folder to be synced, such as
/Backup. - Run the sync command: This command will sync the contents of
/Photosfrom Dropbox to the/Backupdirectory in Nextcloud. - Optionally, add the
--verboseflag to see more details about the sync process:
Step 5: Verify the Sync
It's a good practice to verify that the synchronization has been completed successfully:
- Log in to your Nextcloud web interface.
- Navigate to the
/Backupfolder. - Check that all files from the Dropbox
/Photosfolder are present and correct.