First you need to install rar (non-free):
- Code: Select all
aptitude install rar
Now we are ready to make the archive. Navigate to the directory your files are. Usage is as follows:
- Code: Select all
rar a -m0 -v15M thenameofmyarchive fileIwanttoinclude1.avi fileIwanttoinclude2.pdf
rar - starts rar....
a - adds file(s) to the archive
-m0 - determines compression level (0=store ... 3=default ... 5=maximum)
-v15M - determines size of each split rar-file. 15M means 15 megabytes. (If you want something very small, e.g. 512kB, use -v512k)
thenameofmyarchive - output archive. (Do not add an extension. This will be added automatically.)
fileIwanttoinclude1.avi fileIwanttoinclude.pdf - the names of the files you want to add to the archive and split.
The files will be built and you will see output files that ends with thenameofmyarchive.part1.rar thenameofmyarchive.part2.rar, etc.
Extract them from the cli with
- Code: Select all
rar x thenameofmyarchive.part1.rar
That's it.
Plagiarized from here:
http://ubuntuhowtos.com/howtos/create_split_rar_archive
Discussion is here: viewtopic.php?f=24&t=1475