I would like to copy directories with --files-from-raw

I would like to copy directories with "--files-from-raw files-from-raw.txt".
$ cat files-from-raw.txt
/a/b/c/
/d/e/f/

But, it does not work.
2020/09/25 04:04:10 ERROR : : error reading source directory: "d/e/f": is not a regular file
2020/09/25 04:04:10 ERROR : Attempt 1/1 failed with 1 errors and: "d/e/f": is not a regular file
2020/09/25 04:04:10 Failed to copy: "d/e/f": is not a regular file

I would like to copy directories by a rclone command. It is like a batched process. Therefore, it would be appreciated if you could add a feature to copy directories with --files-from-raw.

You can use --include-from to include directories.

Just add them in as /path/to/directory/** - use / even on Windows.

Where path/to/directory is the path relative to the root of the copy (same as --files-from)

Thank you for your kind answer. It works with --include-from.

Best regards
Tatsuya

1 Like

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