troubleshooting Question

Extract only single folder from RAR archive with exclusions

Avatar of Andrej Pirman
Andrej PirmanFlag for Slovenia asked on
SoftwareProgrammingMicrosoft Applications
1 Comment1 Solution490 ViewsLast Modified:
Hi,

can somebody assit me with command line syntax of WinRAR (or some other exctacting software) to resolve my issue?

I have .RAR archive of 54 GB in size, so my script must work at first shot. I am testing with smaller archive, but without sucess.
Now, the structure inside .RAR is like this:
..
folder1
folder2
folder3
IMPORTANT-FOLDER
folder4
some other folders
etc...

I only need some specific FOLDERS under IMPORTANT-FOLDER (not the whole sub-tree!). Under IMPORTANT-FOLDER, structure is like this:
-IMPORTANT-FOLDER
 - domain1.com
     - wwwroot
     - database
     - logs
 - domain2.com
     - wwwroot
     - database
     - logs
 - domain2.com
     - wwwroot
     - database
     - logs

So, I need to extract everything ONLY from IMPORTANT-FOLDER, EXCEPT "logs" folder into C:\domains.
I already tried with syntax:

WinRAR.exe x -ibck -r -y -ow -x*\logs\* test.rar IMPORTANT-FOLDER\ c:\

...but this syntax extract all folders, not only IMPORTANT-FOLDER.
I would extract it elsewhere, but still I'd need to filter it somehow. Problem is speed and time, because processing this large .RAR archive takes few hours, and I do not want to test.

Thanx for any suggestions.
ASKER CERTIFIED SOLUTION
Andrej Pirman

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros