Skip to content

Instantly share code, notes, and snippets.

@0xBADC0FFEE
Created August 15, 2017 10:09
Show Gist options
  • Save 0xBADC0FFEE/997bbbb0e1e3716c53489be136752d94 to your computer and use it in GitHub Desktop.
Save 0xBADC0FFEE/997bbbb0e1e3716c53489be136752d94 to your computer and use it in GitHub Desktop.
Get diff between two directories using rsync
rsync -rcnC --out-format="\"%f\"" folder1/ folder2/ | xargs cp --parents -rfvt folder3/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment