Created
April 7, 2019 18:45
-
-
Save cleemesser/569a2168f4097b7d313044d3eb866253 to your computer and use it in GitHub Desktop.
rclone copy with basic filter on windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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