Problems with .png fies

Hello, I searched through the forum but couldn’t find anyone posting about this particular problem.

I am trying to use Rclone to pull files from Google Drive to my raspberry pi. The files will be a mix of .jpg, .png, and .bmp files.

It works fine if I try to download all the files at the same time, using :

rclone sync remote:/rclone /media/internal/images

It works fine if I include only .jpg files :

rclone sync remote:/rclone /media/internal/images --include *.jpg

It works fine if I include only .bmp files :

rclone sync remote:/rclone /media/internal/images --include *.bmp

However it fails with the error of “Command sync needs 2 arguments maximum” when I try :

clone sync remote:/rclone /media/internal/images --include *.png

–include *.{png,jpg} also fails with that same 2 argument maximum error.

Using --include-from include-file.txt (specifying *.png in the txt file) works fine.

Any thoughts on why --include *.png does’t work?

Thank you so much,

Sean

You probably have some .png files in your current directory which the shell is expanding.

Use quotes around the include parameters and it will work probably!

rclone sync remote:/rclone /media/internal/images --include '*.png'

Yup, that did it! Thank you so much Nick! :slight_smile:

1 Like