Creating a patch-archive with modified files

Create a gzipped tarball containing all files that were modified today, in a given directory:

find . -mtime -1 -type f -print | xargs tar -czvf myarchive.tar.gz

List all files in theĀ  gzipped tarball:

tar -ztvf myarchive.tar.gz

Resources:

manpage ‘find’

manpage ‘tar’

Add to your favorites:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon

This entry was posted on Friday, February 13th, 2009 at 13:03 and is filed under Commandline, Ubuntu, Unix general. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply