Friday, January 20, 2012

Useful rar command line

Usage: rar <command> -<switch 1> <switch N> <archive> <files....>
               <@listfiles...> 
<path_to_extract\>

<Commands>
  a     Add files to archive
  x     Extract files with full path



<Switches>
  m<0..5>   Set compression level (0-store...3-default...5-maximal)
  rr[N]     Add data recovery record
  v[k,b]    Create volumes with size=*1000 [*1024, *1]

So, normally we use :

rar a -m5 -rr -v600000k abc.rar abcfiles

It will be max compression level, with recovery record, and also multi-volume with 600MB for each files.

No comments: