Re: 7zr compress include subdirs?

2011-01-30 Thread Henrique de Moraes Holschuh
On Sun, 30 Jan 2011, Anand Sivaram wrote:
 If you are using tar, then try xz instead of 7-zip. Both xz and 7-zip use
 lzma2 compression.  But xz command line utility is very similar to
 gzip/bzip2, so most of the gzip options could be used.  In fact tar has a
 filter also for xz which is 'J'.  It can be used just like gzip
 tar cfJ something.tar.xz something (that is the same as, tar cf - something
 | xz  something.tar.gz)
 tar xfJ something.tar.xz

And Debian supports it for packaging source, and automake supports it for
make dist-xz...

Xz is a better choice for software distribution than 7zip, in the general
case.

-- 
  One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie. -- The Silicon Valley Tarot
  Henrique Holschuh


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110130130242.ga1...@khazad-dum.debian.net



Re: 7zr compress include subdirs?

2011-01-29 Thread Hugo Vanwoerkom

Wayne Topa wrote:

On 01/27/2011 04:28 PM, Hugo Vanwoerkom wrote:

Hi,

Trying to use 7zr, used example 1 from the man:

7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1

But my 'dir1' has subdirs and they are empty when I expand 'archive.7z'.

I note a -r flag but with the warning:

-r[-|0]
Recurse subdirectories (CAUTION: this flag does not do what you think,
avoid using it)

Anybody know how to include the subdirs as subdirs in the compressed
archive?


If you have installed p7zip-full, have you read the README?  I ask 
because I have and would not use this program at all.


Quote

- FIRST : DO NOT USE the 7-zip format for backup purpose on Linux/Unix 
because :

  - 7-zip does not store the owner/group of the file
and

 On Linux/Unix, in order to backup directories you must use tar !
  to backup a directory  : tar cf - directory | 7za a -si directory.tar.7z
  to restore your backup : 7za x -so directory.tar.7z | tar xf -



Thanks, Wayne. That's in the manpage. I am not backing up, I want to 
create an archive with high compression for distribution and this beats 
them all.


Hugo













--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/ii1rqc$ds3$1...@dough.gmane.org



Re: 7zr compress include subdirs?

2011-01-29 Thread Anand Sivaram
On Sun, Jan 30, 2011 at 01:33, Hugo Vanwoerkom hvw59...@care2.com wrote:

 Wayne Topa wrote:

 On 01/27/2011 04:28 PM, Hugo Vanwoerkom wrote:

 Hi,

 Trying to use 7zr, used example 1 from the man:

 7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1

 But my 'dir1' has subdirs and they are empty when I expand 'archive.7z'.

 I note a -r flag but with the warning:

 -r[-|0]
 Recurse subdirectories (CAUTION: this flag does not do what you think,
 avoid using it)

 Anybody know how to include the subdirs as subdirs in the compressed
 archive?


 If you have installed p7zip-full, have you read the README?  I ask because
 I have and would not use this program at all.

 Quote

 - FIRST : DO NOT USE the 7-zip format for backup purpose on Linux/Unix
 because :
  - 7-zip does not store the owner/group of the file
 and

  On Linux/Unix, in order to backup directories you must use tar !
  to backup a directory  : tar cf - directory | 7za a -si directory.tar.7z
  to restore your backup : 7za x -so directory.tar.7z | tar xf -


 Thanks, Wayne. That's in the manpage. I am not backing up, I want to create
 an archive with high compression for distribution and this beats them all.

 Hugo














 --
 To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a
 subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
 Archive: http://lists.debian.org/ii1rqc$ds3$1...@dough.gmane.org


If you are using tar, then try xz instead of 7-zip. Both xz and 7-zip use
lzma2 compression.  But xz command line utility is very similar to
gzip/bzip2, so most of the gzip options could be used.  In fact tar has a
filter also for xz which is 'J'.  It can be used just like gzip
tar cfJ something.tar.xz something (that is the same as, tar cf - something
| xz  something.tar.gz)
tar xfJ something.tar.xz


7zr compress include subdirs?

2011-01-27 Thread Hugo Vanwoerkom

Hi,

Trying to use 7zr, used example 1 from the man:

7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1

But my 'dir1' has subdirs and they are empty when I expand 'archive.7z'.

I note a -r flag but with the warning:

-r[-|0]
  Recurse subdirectories (CAUTION: this flag does not do 
what you think, avoid using it)


Anybody know how to include the subdirs as subdirs in the compressed 
archive?


Hugo


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/ihso2i$pqu$1...@dough.gmane.org



Re: 7zr compress include subdirs?

2011-01-27 Thread Wayne Topa

On 01/27/2011 04:28 PM, Hugo Vanwoerkom wrote:

Hi,

Trying to use 7zr, used example 1 from the man:

7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1

But my 'dir1' has subdirs and they are empty when I expand 'archive.7z'.

I note a -r flag but with the warning:

-r[-|0]
Recurse subdirectories (CAUTION: this flag does not do what you think,
avoid using it)

Anybody know how to include the subdirs as subdirs in the compressed
archive?


If you have installed p7zip-full, have you read the README?  I ask 
because I have and would not use this program at all.


Quote

- FIRST : DO NOT USE the 7-zip format for backup purpose on Linux/Unix 
because :

  - 7-zip does not store the owner/group of the file
and

 On Linux/Unix, in order to backup directories you must use tar !
  to backup a directory  : tar cf - directory | 7za a -si directory.tar.7z
  to restore your backup : 7za x -so directory.tar.7z | tar xf -

Wayne


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d41f56f.2060...@gmail.com



Re: 7zr compress include subdirs?

2011-01-27 Thread godo

On 01/27/2011 10:28 PM, Hugo Vanwoerkom wrote:

Hi,

Trying to use 7zr, used example 1 from the man:

7zr a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on archive.7z dir1

But my 'dir1' has subdirs and they are empty when I expand 'archive.7z'.

I note a -r flag but with the warning:

-r[-|0]
Recurse subdirectories (CAUTION: this flag does not do what you think,
avoid using it)

Anybody know how to include the subdirs as subdirs in the compressed
archive?

Hugo



Hi,
this works for me:
$ 7z a -mx=9 directory.7z  directory

And that include all sub directories and files.

I'm avoiding extra flags except password because few times I couldn't 
extract on friends box who also have Debian.


--
Bye,
Goran Dobosevic
Hrvatski: www.dobosevic.com
 English: www.dobosevic.com/en/
Registered Linux User #503414


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4d42109b.3090...@dobosevic.com