I need to make a .tar.gz out of some directory. Anyone knows any example code of this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 31 Aug 2006, at 14:11, Igor Milovanović wrote:> I need to make a .tar.gz out of some directory. > Anyone knows any example code of this? >A combined tar and gzip will probably be better: The "z" flag works with gzip, to either create a tar/gzipped archive: tar -czvf archive.tgz files/ ...or decompress a tar/gzipped archive: tar -xzvf archive.tgz Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
http://www.ruby-doc.org/stdlib/libdoc/zlib/rdoc/index.html might be helpful. -Pratik On 8/31/06, Peter De Berdt <peter.de.berdt@pandora.be> wrote:> > > On 31 Aug 2006, at 14:11, Igor Milovanoviæ wrote: > > > I need to make a .tar.gz out of some directory. > > Anyone knows any example code of this? > > > > A combined tar and gzip will probably be better: > > The "z" flag works with gzip, to either create a tar/gzipped archive: > > tar -czvf archive.tgz files/ > > ...or decompress a tar/gzipped archive: > > tar -xzvf archive.tgz > > > Best regards > > Peter De Berdt > > > > >-- rm -rf / 2>/dev/null - http://null.in Dont judge those who try and fail, judge those who fail to try.. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 8/31/06, Peter De Berdt <peter.de.berdt@pandora.be> wrote:> > > I need to make a .tar.gz out of some directory. > > Anyone knows any example code of this? > > > tar -xzvf archive.tgz >I was thinking about using Ruby to do this. :) -- Igor MILOVANOVIĆ http://f13o.pletisan.rs.ba/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Just for the record: Solution for making a tar.gzip might just be these two libs/modules or Ruby: Arhive::Tar::Minitar (http://rubyforge.org/projects/ruwiki/) and Zlib library. Although I didn't find any good examples for making this. When I do start coding this, I'll post back some code here... -- Igor MILOVANOVIĆ http://f13o.pletisan.rs.ba/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---