0

I have a folder containing several folders. I want to tar and gzip the parent folder with all the contents of the subfolders. However, when I use

tar -cvzf folder.tar.gz Folder/

only a few subfolders are archived and compressed. What's going wrong?

output of ls

[dpeponis@r000u08l03 initial_length]$ ls -l Results/d_1.8/
total 0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:23 1.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:26 10.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 1.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 2.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 2.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 3.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 3.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 4.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 4.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:24 5.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 5.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 6.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 6.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 7.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 7.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 8.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 8.5
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 9.0
drwxr-xr-x 2 dpeponis interactive 4096 Apr 18 13:25 9.5

For some reason it starts compressing by folder 6.0, continuing randomly.

[dpeponis@r000u08l03 initial_length]$ tar -cvzf results.tar.gz Results/d_1.8/
Results/d_1.8/
Results/d_1.8/6.0/
Results/d_1.8/6.0/pec_rings.ini
Results/d_1.8/6.0/3D-Temp-p=0.8.nc
Results/d_1.8/6.0/geometry-p=0.8.nc
Results/d_1.8/6.0/TE_0_1.ini
Results/d_1.8/6.0/grid-p=0.8.nc
Results/d_1.8/3.0/
Results/d_1.8/3.0/pec_rings.ini
Results/d_1.8/3.0/3D-Temp-p=0.8.nc
Results/d_1.8/3.0/geometry-p=0.8.nc
Results/d_1.8/3.0/TE_0_1.ini
Results/d_1.8/3.0/grid-p=0.8.nc
Results/d_1.8/4.5/
Results/d_1.8/4.5/pec_rings.ini
Results/d_1.8/4.5/3D-Temp-p=0.8.nc
Results/d_1.8/4.5/geometry-p=0.8.nc
Results/d_1.8/4.5/TE_0_1.ini
Results/d_1.8/4.5/grid-p=0.8.nc
Results/d_1.8/10.0/
Results/d_1.8/10.0/pec_rings.ini
Results/d_1.8/10.0/3D-Temp-p=0.8.nc
Results/d_1.8/10.0/geometry-p=0.8.nc
Results/d_1.8/10.0/TE_0_1.ini
Results/d_1.8/10.0/grid-p=0.8.nc
Results/d_1.8/5.0/
Results/d_1.8/5.0/pec_rings.ini
Results/d_1.8/5.0/3D-Temp-p=0.8.nc
Results/d_1.8/5.0/geometry-p=0.8.nc
Results/d_1.8/5.0/TE_0_1.ini
Results/d_1.8/5.0/grid-p=0.8.nc
Results/d_1.8/2.0/
Results/d_1.8/2.0/pec_rings.ini
Results/d_1.8/2.0/3D-Temp-p=0.8.nc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.