How the fiddle to exclude one file!?

What is the problem you are having with rclone?

adding a simple filter

What is your rclone version (output from rclone version)

1.54.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Windows 10 Pro, 64 bit

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

Microsoft OneDrive

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

i'm trying to run the rclone sync command, but exclude one specific file. here are the list of commands i've tried using to exclude the file. the file is F:\Jared\Media\PowerPoint.mp4 i wish i had hair to pull....

rclone sync --verbose --exclude *PowerPoint.mp4 --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
rclone sync --verbose --exclude "*PowerPoint.mp4" --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
rclone sync --verbose --exclude PowerPoint.mp4 --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
rclone sync --verbose --exclude /Media/PowerPoint.mp4 --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
rclone sync --verbose --exclude Media/PowerPoint.mp4 --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
rclone sync --verbose --exclude "Media/PowerPoint.mp4" --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"

could someone please bump me onto the correct syntax here please? i'm about ready to go join the Amish....

You'd have to share a log so we know what the issue is.

Run the command with just rclone ls and make sure to use -vv and share the full output.

there is no issue with rclone. my unix code just isn't excluding the file; it's getting included in the sync. i just need someone to correct my filtering

do a rclone ls F:\Jared -vv and make sure that F:\Jared\Media\PowerPoint.mp4 exists where you think it does and the exact spelling, case sensitive.

post the debug output showing that.

here is the log file. as you can see, the file path in the debug log, and my syntax are the same. yet, the file is still getting checked. i've used --exclude before, for a directory, with --exclude /directory/ and it worked perfectly. this should be so simple..

C:\rclone 1.54.1>rclone sync --verbose -vv --exclude Media/PowerPoint.mp4 --transfers=10 "F:\Jared" "OneDriveEncrypted:Jared"
2021/03/23 08:33:10 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "sync" "--verbose" "-vv" "--exclude" "Media/PowerPoint.mp4" "--transfers=10" "F:\\Jared" "OneDriveEncrypted:Jared"]
2021/03/23 08:33:10 DEBUG : Creating backend with remote "F:\\Jared"
2021/03/23 08:33:10 DEBUG : Using config file from "C:\\Users\\Jared\\.config\\rclone\\rclone.conf"
2021/03/23 08:33:10 DEBUG : fs cache: renaming cache item "F:\\Jared" to be canonical "//?/F:/Jared"
2021/03/23 08:33:10 DEBUG : Creating backend with remote "OneDriveEncrypted:Jared"
2021/03/23 08:33:10 DEBUG : Creating backend with remote "OneDrive:TBA Server/s8um5qp46ejrjvq9qcfmugvgs8"
2021/03/23 08:33:12 DEBUG : Creating backend with remote "OneDriveWy:TBA Server/Jared"
2021/03/23 08:33:14 DEBUG : Media/PowerPoint.mp4: Size and modification time the same (differ by 0s, within tolerance 1s)
2021/03/23 08:33:14 DEBUG : Media/PowerPoint.mp4: Unchanged skipping

If you can run rclone ls on the source, that would be superb.

felix@gemini:~/test$ rclone ls /home/felix/test
        0 Media/PowerPoint.mp4
felix@gemini:~/test$ rclone ls /home/felix/test --exclude Media/PowerPoint.mp4 -vv
2021/03/23 10:54:00 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "ls" "/home/felix/test" "--exclude" "Media/PowerPoint.mp4" "-vv"]
2021/03/23 10:54:00 DEBUG : Creating backend with remote "/home/felix/test"
2021/03/23 10:54:00 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2021/03/23 10:54:00 DEBUG : Media/PowerPoint.mp4: Excluded
2021/03/23 10:54:00 DEBUG : 2 go routines active

here you be. i stopped it after the file in question was encountered:

C:\rclone 1.54.1>rclone ls --verbose -vv F:\Jared
2021/03/23 10:06:21 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "ls" "--verbose" "-vv" "F:\\Jared"]
2021/03/23 10:06:21 DEBUG : Creating backend with remote "F:\\Jared"
2021/03/23 10:06:21 DEBUG : Using config file from "C:\\Users\\Jared\\.config\\rclone\\rclone.conf"
2021/03/23 10:06:21 DEBUG : fs cache: renaming cache item "F:\\Jared" to be canonical "//?/F:/Jared"
8917653400 Media/PowerPoint.mp4
2021/03/23 10:06:25 DEBUG : 2 go routines active

And if you add the exclude and run the same thing like I shared in my example?

C:\rclone 1.54.1>rclone ls --verbose -vv F:\Jared --exclude Media\PowerPoint.mp4
2021/03/23 10:11:44 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "ls" "--verbose" "-vv" "F:\\Jared" "--exclude" "Media\\PowerPoint.mp4"]
2021/03/23 10:11:44 DEBUG : Creating backend with remote "F:\\Jared"
2021/03/23 10:11:44 DEBUG : Using config file from "C:\\Users\\Jared\\.config\\rclone\\rclone.conf"
2021/03/23 10:11:44 DEBUG : fs cache: renaming cache item "F:\\Jared" to be canonical "//?/F:/Jared"
8917653400 Media/PowerPoint.mp4

ha! using / instead of \ in the file path gained me some progress:

C:\rclone 1.54.1>rclone ls --verbose -vv F:\Jared --exclude Media/PowerPoint.mp4
2021/03/23 10:14:12 DEBUG : rclone: Version "v1.54.1" starting with parameters ["rclone" "ls" "--verbose" "-vv" "F:\\Jared" "--exclude" "Media/PowerPoint.mp4"]
2021/03/23 10:14:12 DEBUG : Creating backend with remote "F:\\Jared"
2021/03/23 10:14:12 DEBUG : Using config file from "C:\\Users\\Jared\\.config\\rclone\\rclone.conf"
2021/03/23 10:14:12 DEBUG : fs cache: renaming cache item "F:\\Jared" to be canonical "//?/F:/Jared"
2021/03/23 10:14:12 DEBUG : Media/PowerPoint.mp4: Excluded

finally! now for the sync command to work...

got it! it was the \ instead of the /, and a spelling mistake :woozy_face:
the reason they command list above has nothing obvious wrong with it is i typed it from memory and must've spelled it correctly typing it in above. thanks for bumping me into place though :smirk:

yeah, that is why i mentioned the issue of spelling, as some of those commands looked valid.

i guess i've been half-way out-spelled by a monkey :stuck_out_tongue:

as a half-monkey, half-human, living in a mutualistic symbiotic relationship.
trust me, it is the human half that cannot spell :upside_down_face:

:laughing:

(this sentence is only here because the forum insists i waste words)

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