Anyone fancy giving me some scripting help?
I have a Linux machine where I have a lot of folders within a folder and I need to make a tar.gz of each of the subfolders and then delete the original subfolder Something like
Folder
Sub1
File1
File2
.
.
FileN
Sub2
File1
File2
.
.
FileN
After the script I end up with
Folder
Sub1.tar.gz
Sub2.tar.gz
Eventually, I'll probably tar.gz the resulting files as well, ending up with only one file.
I tried yesterday to select all the folders, right-clicking and selecting Create archive. After it had run for about 16 hours, it had done about 2/3 of the selected folders. Seems it will tar.gz one folder, add it to the finished result, tar.gz the next folder, untar the result before adding the second folder. As the tar-file grows, it will take longer and longer time to add one folder. When I stopped it, the resulting file was 12Gb and 178k files...
I think this script will be quite simple, butI'm not very adept at scripting...