9

Tip #152   Finding Newer Files [OR How To Create A Patch File]

You can use find with the '-newer' flag in conjunction with tar to create a patch file:
tar -czvf patch-20070321.tar `find /path/to/project/ -newer /path/to/project/last-archive.tgz -print`


In this example 'last-archive.tgz' is the last tarball for the given project. -newer finds files newer that than last-archive.tgz, this way you can tar up only the changed files.