Skip to content

Instantly share code, notes, and snippets.

@harupong
Created September 11, 2018 09:30
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 harupong/46fb8b4d8dd5825d7aa653a719087d1f to your computer and use it in GitHub Desktop.
Save harupong/46fb8b4d8dd5825d7aa653a719087d1f to your computer and use it in GitHub Desktop.
Quick and dirty PowerShell script to dedupe Google photos using rclone
$paths = @(
"google-drive:Google Photos\path1",
"google-drive:Google Photos\path2",
"google-drive:Google Photos\path3",
)
$paths | ForEach-Object -Process {
echo $_ ; .\rclone lsf $_ | Measure-Object –Line ; if($?) {.\rclone dedupe --dedupe-mode largest $_}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment