Skip to content

Instantly share code, notes, and snippets.

@kknd22
Last active August 29, 2015 14:00
Show Gist options
  • Save kknd22/11154262 to your computer and use it in GitHub Desktop.
Save kknd22/11154262 to your computer and use it in GitHub Desktop.
gitbash backup preserve original directory back up
#!/bin/sh
# daily backup for gradle in gradle project
cd C:/x/y/z
find . -name "build.gradle" -print0 2>/dev/null | xargs -0 --replace cp -P {} C:/a/b/c/d/gradle-dayily-back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment