Sync creats for each file a single folder in target directory

What is the problem you are having with rclone?

I try to transfer Files from Directory A to Directory B. Both Windows-Distributions where i mounted one folder each. I´m running a Sync, so every new file in A should be transfered to B. And if a file is deleted in A it should be deleted in B as well. On top of that, it should keep the original Folder-structur (tree). But, instead of that, the sync creates for each file one single folder in the Target-Directory with exact the name of the File.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.0

  • os/version: redhat 8.8 (64 bit)
  • os/kernel: 4.18.0-477.15.1.el8_8.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

\\\ ssh nextcloud@ps-nctranst-01.br-edv.brnet.int 'rclone sync --create-empty-src-dirs --exclude "*.*" --fast-list --no-check-certificate --disable-http2 --ignore-errors --multi-thread-streams 0 --local-no-preallocate --local-no-sparse "/mnt/redshare/Z-Sonstige-Sendungen/{JobsFileName}" "/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/{JobsFileName}" -vvv --log-file="/home/nextcloud/log/{JobsProcessId}_{JobsProcess}_Test_Studioproduktionen_SYNC.log"' \\\

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

2024/06/26 13:28:25 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
; empty config

A log from the command that you were trying to run with the -vv flag

2024/06/26 10:02:11 DEBUG : rclone: Version "v1.65.0" starting with parameters ["rclone" "sync" "--create-empty-src-dirs" "--exclude" "*.*" "--fast-list" "--no-check-certificate" "--disable-http2" "--ignore-errors" "--multi-thread-streams" "0" "--local-no-preallocate" "--local-no-sparse" "/mnt/redshare/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png" "/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png" "-vvv" "--log-file=/home/nextcloud/log/AZBTkNPi-RjfTqqs1LSY_Alpha Thema 11.06.2024_dc7e4b46-85cb-4fa0-8537-5085dc951195_Test_Studioproduktionen_SYNC.log"]
2024/06/26 10:02:11 DEBUG : Creating backend with remote "/mnt/redshare/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png"
2024/06/26 10:02:11 DEBUG : Using config file from "/home/nextcloud/.config/rclone/rclone.conf"
2024/06/26 10:02:11 DEBUG : local: detected overridden config - adding "{K_hQ-}" suffix to name
2024/06/26 10:02:11 DEBUG : fs cache: adding new entry for parent of "/mnt/redshare/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png", "local{K_hQ-}:/mnt/redshare/Z-Sonstige-Sendungen/alpha-thema_Gespräch"
2024/06/26 10:02:11 DEBUG : Creating backend with remote "/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png"
2024/06/26 10:02:11 DEBUG : local: detected overridden config - adding "{K_hQ-}" suffix to name
2024/06/26 10:02:11 DEBUG : fs cache: renaming cache item "/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png" to be canonical "local{K_hQ-}:/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png"
2024/06/26 10:02:11 DEBUG : Alpha Thema 11.06.2024.png: Need to transfer - File not found at Destination
2024/06/26 10:02:11 DEBUG : Alpha Thema 11.06.2024.png: md5 = 2eb0f7c110b5d4ac92ea1ebf3f3514a2 OK
2024/06/26 10:02:11 DEBUG : Alpha Thema 11.06.2024.png.lexomot0.partial: renamed to: Alpha Thema 11.06.2024.png
2024/06/26 10:02:11 INFO  : Alpha Thema 11.06.2024.png: Copied (new)
2024/06/26 10:02:11 INFO  :
Transferred:        3.108 MiB / 3.108 MiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         0.0s

2024/06/26 10:02:11 DEBUG : 7 go routines active


welcome to the forum,

that is an old version of rclone, can rclone selfupdate and test again.

hard to know what is going on,
you posted just a snippet of the debug log, missing the top lines with the exact command and important details.

I´ve added the first line of the logfile, what is just the commandline again. Thats why i spared it out.

now, that you posted the exact command, i think i see what went wrong.

the source can be a folder or a file.
however, rclone expects the destination to be a folder, not a file.

in effect, for the dest, you asked rclone create a new folder named Alpha Thema 11.06.2024.png
"/mnt/Test_Studioproduktionen/Z-Sonstige-Sendungen/alpha-thema_Gespräch/Alpha Thema 11.06.2024.png"

I´ve sorted the problem out. It was exactly how you figured it out. Thanky you very much.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.