I have four folders/tar and i want to tar them into a single tar.gz. I am using common-compress to tar.gz the folder/tar(which mean tar.gz a single folder/tar). Here my challenge is, I don't know how to put in code the four folders/tar names (name of the folder/tar) to compress into a single tar.gz
For example: I have a list of folders a,b,c,d,e,f,g
, and I want to tar.gz the folders a,b,c,d
.
Kindly help me how to specific the selected folders in code.