Rclone won`t copy files not the whole folder

What is the problem you are having with rclone?

i want to copy a folder from my ftp to onedrive but its copying only the files in the folder

What is your rclone version (output from rclone version)


Which cloud storage system are you using?


the comand i used:

rclone copy /home/user/FOLDER /home/user/onedrive --progress

im really new with linux and rclone. would be nice if someone could help me :slight_smile:

hello and welcome to the forum,

hard to help as you did not answer all the questions?

  • the output of rclone version
  • the config file, redact id/secret/password/token
  • the output of the command using -vv

you mention ftp and onedrive but your command looks like a copy from local to local?

and when testing, best to use --dry-run, rclone will simulate a copy without copying any files.

rclone v1.53.3-DEV

  • os/arch: linux/amd64
  • go version: go1.15.9

config file

type = onedrive
token = {"access_token":"***
drive_id = ***
drive_type = documentLibrary

type = ftp
host = ***
user = ***
port = ***
pass = ***
explicit_tls = true

i dont know why but i get no logs..

  • best to update rclone - https://rclone.org/install/#script-installation
  • for the log, add -vv to the command. post the entire output
  • i am not sure i understand the exact issue.
    can you explain in detail, perhaps with a real example of a real command, real filename of a real file not being copied, etc...

the problem is, that i want to copy a folder from my ftp to onedrive. both are local mounted.
when i type in the command,

rclone copy /home/user/FOLDER /home/user/onedrive --progress

rclone is copying the files who are in the folder. not the folder itself. thats the problem.

the documentation might be a bit confusing.
"when source:path is a directory, it's the contents of source:path that are copied, not the directory name and contents."

so try
rclone copy /home/user/FOLDER /home/user/onedrive/FOLDER --progress

are you using rclone mount or what?

fwiw, rclone can copy from ftp to onedrive, no need for local mounts.
rclone copy ftp:FOLDER onedrive:FOLDER --progress

if you are using ftp, best to update, many bug fixes since that old version you are using.

Thanks for your answer.
When I'm back home i will try it out :slight_smile: