General info and support for Rclone.
rclone sync dropbox:/"Folder Name" nextcloud:/folder_name --verbose
# --dry-run for testing
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.
To set up Dropbox in rclone, follow these steps:
- Run
rclone config to start the configuration wizard:
- Choose
n for 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
rclone to 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.
- Finish and exit the configuration wizard.
Nextcloud uses WebDAV, so the setup is slightly different:
- Run
rclone config again to add another remote.
- Choose
n for 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.com with your Nextcloud server's URL
and USERNAME with your Nextcloud username.
- Choose
nextcloud when asked for the type of WebDAV.
- Input your Nextcloud username and password.
- Finish and exit the configuration.
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
/Photos from Dropbox to the /Backup directory in Nextcloud.
- Optionally, add the
--verbose flag to see more details about the
sync process:
It's a good practice to verify that the synchronization has been
completed successfully:
- Log in to your Nextcloud web interface.
- Navigate to the
/Backup folder.
- Check that all files from the Dropbox
/Photos folder are present
and correct.