Using Rclone to sync data.

In this example we use:

  • Rclone over SFTP.
  • User SSH password.


Install Rclone on Debian and Ubuntu.

sudo apt install rclone

Install Rclone on Windows and other Systems.

Go to https://rclone.org/downloads/

Configure Rclone

Create a New Remote, run rclone config.

rclone config

rclone config

Choose option 26 for SSH.

rclone 26

Enter Hostname or IP.

rclone hostname

Enter your username.

Hit Enter for default port 22.

Type y to enter your password.

rclone user

Enter your password.

Press Enter for the default value.

Type n to leave optional password blank.

rclone pwd

Press Enter for the default ("false").

rclone n

Press Enter for the default ("false") twice.

rclone cipher

Press n for advanced config.

rclone adv

Press y to confirm settings.

rclone confirm

New "remote" is now created.

Type q to quit.

rclone done

Listing files and directories on remote

List directories in the home directory

rclone lsd extralayer:

Use -R flag to list directories and sub-directories recursively.

rclone lsd -R extralayer:


List files in the home directory

rclone ls extralayer:

List directories and files in the home directory

rclone lsf extralayer:

List directories and files recursively.

rclone lsf -R extralayer:disks

Use Rclone to sync data

Clone a local directory named disks to a remote directory named disks.

rclone sync disks/ extralayer:disks/ -P

Flag -P shows progress.


The command will sync everything from local to remote. If data is added or deleted locally Rclone will sync the changes to remote when you run rclone sync again.

If the directory of the same name already exists on remote then Rclone will remove the files from remote directory that do not exist on local and upload the existing local files to remote, so make sure you don't overwrite something you don't want to overwrite accidentally.

Important: Use --dry-run flag beforehand to prevet data loss.

Message "Not deleting as dry run is set" will display.


Rclone Browser


Rclone Documentation

Rclone sftp

Rclone sync

Rclone commands