How to search in rclone cmd

What is the problem you are having with rclone?

Is there a way to search thru rclone?

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

Rclone 1.58.1

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

Google drive

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

rclone  search gdrive:   *file*june*2022*

rclone  tree  gdrive:docs/    --include *file*june*2022*pdf

The above rclone tree command doesnt work, or it does but spits out all the folders only, not as expected

This is probably the easiest way:

rclone ls --include "*examplefile*" remote:
1 Like

rclone lsf --format "p" -R  gdrive:pdf  --include *Bill*june*2022*pdf --files-only

This seems to work, but how to set up case insensitive

Check out the filtering page as it's documented:

Rclone Filtering

Simple patterns are case sensitive unless the --ignore-case flag is used.

Without --ignore-case (default)

potato - matches "potato"
       - doesn't match "POTATO"

With --ignore-case

potato - matches "potato"
       - matches "POTATO"
1 Like
rclone lsf --format "p" -R  gdrive:  --include *file*june*2022*pdf --files-only --ignore-case

This command is taking too long....or is it wrong?

Edit.... --ignore-case is taking toooo long, compared to same command without it

Well, yeah, if you've added ignore case, you've got a ton of permutations to go through based on your requirement.

"too long" means nothing as it's subjective.

What's the first one taking? What's the second one taking? Did you run a debug log and see if any errors are happening?

Non ignore case takes 3-5 seconds

Ignore case takes a minute or more


-vv just shows a waterfall of excluded files

I dont think i see error, is there any way to filter out errors?

There are a number of items to that can possibly create errors.

Generally ignore case is going to take longer as you've got a whole slew of permutations to compare based on what you've asked it to do.

Without the log, I can't really guess as I can look through it and possibly give more help/assistance.

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