$ rclone check a b
2019/06/12 08:31:00 ERROR : file.txt: File not in Local file system at /tmp/b
2019/06/12 08:31:00 NOTICE: Local file system at /tmp/b: 1 files missing
2019/06/12 08:31:00 NOTICE: Local file system at /tmp/b: 1 differences found
2019/06/12 08:31:00 Failed to check with 2 errors: last error was: 1 differences found
Yes. rclone check a b works as you describe, creating:
$ rclone check a b
2019/06/12 08:31:00 ERROR : file.txt: File not in Local file system at /tmp/b
2019/06/12 08:31:00 NOTICE: Local file system at /tmp/b: 1 files missing
2019/06/12 08:31:00 NOTICE: Local file system at /tmp/b: 1 differences found
2019/06/12 08:31:00 Failed to check with 2 errors: last error was: 1 differences found
I was trying to ask if it might be possible to output (with a flag) just the list of missing files without all the additional info. For example:
$ rclone check a b --list-only --one-way
/tmp/b/file.txt
The resultant list can be handy for further processing.
Output could be something simple with unique separators or labeling. The idea is to have raw file names that can be used in rclone sync/move/copy as needed.
I have a few simple scripts that process the current rclone check output into text files. Most using something like this to parse:
Can you please make a new issue on github with a link to this issue and some ideas please? I think a --json flag would be pretty easy to implement too.