### Create recovery data Source: https://github.com/parchive/par2cmdline/blob/master/README.md Example command used to create recovery data, illustrating the naming convention of resulting PAR2 files. ```bash par2 c -b1000 -r5 test.mpg ``` -------------------------------- ### Create Command Options Source: https://github.com/parchive/par2cmdline/blob/master/README.md Lists the available options for the 'create' command, including redundancy levels, block sizes, and file naming. ```bash -a : Set the main PAR2 archive name required on create, optional for verify and repair -b : Set the Block-Count -s : Set the Block-Size (don't use both -b and -s) -r : Level of redundancy (%) -r : Redundancy target size, =g(iga),m(ega),k(ilo) bytes -c : Recovery block count (don't use both -r and -c) -f : First Recovery-Block-Number -u : Uniform recovery file sizes -l : Limit size of recovery files (don't use both -u and -l) -n : Number of recovery files (max 31) (don't use both -n and -l) -m : Memory (in MB) to use -t : Number of threads to use (Auto-detected) -v [-v] : Be more verbose -q [-q] : Be more quiet (-qq gives silence) -p : Purge backup files and par files on successful recovery or when no recovery is needed -R : Recurse into subdirectories (only useful on create) -N : data skipping (find badly mispositioned data blocks) -S : Skip leaway (distance +/- from expected block position) -B : Set the basepath to use as reference for the datafiles -- : Treat all following arguments as filenames ``` -------------------------------- ### Basic Commands Source: https://github.com/parchive/par2cmdline/blob/master/README.md Shows the basic commands for help, version, and the main operations (create, verify, repair). ```bash par2 -h : show this help par2 -V : show version par2 -VV : show version and copyright par2 c(reate) [options] [files] par2 v(erify) [options] [files] par2 r(epair) [options] [files] Also: par2create [options] [files] par2verify [options] [files] par2repair [options] [files] ``` -------------------------------- ### Create PAR2 files with a specified percentage of recovery data Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command creates PAR2 recovery files for 'test.mpg' with 10% recovery data and a block size of 300 KB. This doubles the quantity of recovery data compared to the default 5%. ```bash par2 create -s307200 -r10 test.mpg.par2 test.mpg ``` -------------------------------- ### Create additional recovery data Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command is used to create additional recovery data. It specifies a block size of 300 KB, 5% recovery data, and a first block number of 300, assuming previous recovery data was already created. ```bash par2 create -s307200 -r5 -f300 test.mpg.par2 test.mpg ``` -------------------------------- ### Create PAR2 files with a specific article size for UseNet posting Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command creates PAR2 recovery files for 'test.mpg' with a block size set to 300 KB (307200 bytes) for UseNet posting. This results in 9 PAR2 files capable of correcting more errors. ```bash par2 create -s307200 test.mpg.par2 test.mpg ``` -------------------------------- ### Compiling par2cmdline on Linux/Unix Source: https://github.com/parchive/par2cmdline/blob/master/README.md Commands to compile par2cmdline on Linux and other Unix variants. ```bash ./automake.sh ./configure make make check make install ``` -------------------------------- ### Create PAR2 files for multiple data files (e.g., RAR archives) Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command creates PAR2 recovery files for multiple data files, such as RAR archives. The first argument specifies the base name for the PAR2 files, and the second argument uses a wildcard to select all relevant RAR files. ```bash par2 create test.mpg.rar.par2 test.mpg.part*.rar ``` -------------------------------- ### Set target size for recovery files Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command creates PAR2 recovery files for all files in the current directory ('*') with a target size of 200 MB (200 * 1024 * 1024 bytes). The sum of the PAR2 files will approach this size. ```bash par2 create -rm200 recovery.par2 * ``` -------------------------------- ### Verify files Source: https://github.com/parchive/par2cmdline/blob/master/README.md Command to verify data files using PAR2 recovery files. ```bash par2 verify test.mpg.par2 ``` -------------------------------- ### Create PAR2 files for a single data file Source: https://github.com/parchive/par2cmdline/blob/master/README.md This command creates PAR2 recovery files for a single data file named 'test.mpg'. It generates 8 PAR2 files, including an index file and several recovery files with increasing recovery blocks. ```bash par2 create test.mpg.par2 test.mpg ``` -------------------------------- ### Scan misnamed or incomplete files Source: https://github.com/parchive/par2cmdline/blob/master/README.md Command to include specific files for scanning when they might be misnamed or incomplete. ```bash par2 r test.mpg.par2 other.mpg ``` -------------------------------- ### Scan all files in current directory Source: https://github.com/parchive/par2cmdline/blob/master/README.md Command to have par2cmdline scan all files in the current directory. ```bash par2 r test.mpg.par2 * ``` -------------------------------- ### Repair files Source: https://github.com/parchive/par2cmdline/blob/master/README.md Command to repair damaged or missing files using PAR2 recovery files. ```bash par2 repair test.mpg.par2 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.