I want to delete the files on Google Drive that I have on my local drive or flash drive. Any files that match should be moved to a new folder like --backup dir does. I should also be able to run the --c command to ensure that I am deleting the correct files. Is it possible ? Thank you.
What is your rclone version (output from rclone version)
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10, 64 bit and Windows 7 32 bit
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
C:\Users\redacted>rclone check --one-way "D:\ANBU\All is one\reassembling\Mu
sic\song\mp3" "redacted:\Copy of Reassembling\Music\song\mp3" --match m
atched-files.txt
Error: unknown flag: --match
Usage:
rclone check source:path dest:path [flags]
Flags:
--download Check by downloading rather than with hash.
-h, --help help for check
--one-way Check one way only, source files must exist on remote
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
I tested it with dry run. Both command appears to work as intended.
I will use the Check command on the new directory to ensure that all the files I have on my new Google folder are in my local drives as well.
Is it possible to use the Google Drive as a source and my local drive as the destination when using the check command with --one-way ?
Like this:
rclone check --one-way "redacted:\Copy of Reassembling\Music\song\mp3"
"D:\ANBU\All is one\reassembling\Mu
sic\song\mp3" .
I am trying to ensure all the files I have on my Google Drive are in my local drive as well.
And instead of a list of files that match, is it possible to get a list of files that do not with ```
rclone check --one-way /path/to/local drive:dir --missing-on-src missing-files.txt
rclone move -i --files-from-raw missing-files.txt drive:dir drive:backup-dir
?
Thank you for your help.
Is you are just interested in the content you might be better off using rclone md5sum and a bit of scripting to find the missing files. (Do rclone md5sum on the source and dest, sort the files then use the comm utility to find the missing files)
This might do the trick for you. If not, perhaps it will give you some ideas.
I'll update it to reflect the wonderful new flags in the recent rclone betas when they are committed to master. But this script will work with both old and new rclone.
I got Win-bash. Completely stuck after that. When I run start_shell.bat it says bash$.
I can use rclone check from there like I use it from rclone.exe when I open it from command line.
What do I do after that ? I am sorry. I have never used a script before.
Thank you
given your lack of experience with rclone, bash, scripting, using that diff bash script and the possibility make a mistake that you cannot recover from, i am not comfortable to help you with that.
perhaps someone else can.
but i did offer a possible solution.
mount the gdrive as a drive letter on your computer and use a dedupe program