//View Tip #152
Similar Tips
» Pipe files to an archive
» Tar remote dir over SSH
» Bash function to decompress archives
» Moving large directories
» Incremental backup with tar

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
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.


View Comments »




Comments 

Add your comment

Comments are currently disabled
No Comments

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit