View Full Version : Recursive Rar archiving
March 13th, 2009, 05:34 PM
I'm wondering if theres an already existing command that I missed where I can specify a directory and have each file in the directory go into an rar archive, and if the file is more than a certain amount, it splits the archive.
If not, how would I go about doing this in Python 2.6?
March 13th, 2009, 06:27 PM
If you install rar (apt://rar), you can archive with something like:
rar a -r -v1024k name.rar /path/to/files
The above will add files recursively (-r), and split to files of 1024KiB (-v1024k) in size.
Read the man-page for other options.
March 14th, 2009, 07:09 AM
Thanks for your help. You made some things aware to me that I did not know about.
Is it possible to archive every file in a folder into their own (seperate) rar files?
Then use the rar command to archive every file in the folder:
I wined winRAR, highlight the files you want to archive in winrar, click add, select a split size (100m for 100mb) and then click on the files tab, check the "split files into separate archives".
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.