Skip to content

Instantly share code, notes, and snippets.

@cleemesser
Created April 7, 2019 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleemesser/569a2168f4097b7d313044d3eb866253 to your computer and use it in GitHub Desktop.
Save cleemesser/569a2168f4097b7d313044d3eb866253 to your computer and use it in GitHub Desktop.
rclone copy with basic filter on windows
To copy just a subset of files specify by a pattern. The following works from cmd.exe prompt on windows 10.
rclone copy --include <pattern> <src> <dest>
The quoting rules seem a bit complicated, especially for me on windows where I am less familiar with what cmd.exe does.
it did not work for me to specify pattern as \*.jpg. Instead I had to use double (not single) quotes:
example: just copy the *.jpg files inthe subdirectory images, where the current directory is C:\Users\cleemesser\
rclone copy --include "*.jpg" myremote:projects/images .\images
The actual command was tried with a box remote.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment