Description

How to compress the folder into tgz format from SRX Sheel

Solution

When managing Juniper SRX devices, it is often necessary to transfer large folders between nodes. Direct copying may sometimes fail due to size constraints or network limitations. Compressing the folder into a TGZ format is an efficient way to reduce file size and facilitate smoother transfers.

How to Compress a Folder into TGZ Format from the Juniper SRX Shell

root@jtac-srx4200-r2031:/var/tmp # tar -cvf idpd.tgz idpd/
root@jtac-srx4200-r2031:/var/tmp # ls -l |grep id
-rw-r--r--  1 root  wheel           0 Sep 13 18:02 appidd_cust_app_trace
-rw-r--r--  1 root  wheel        6077 Jan  9 14:15 appidd_trace_debug
drwxr-xr-x  7 root  wheel         512 Jan  9 14:23 idpd
-rw-r--r--  1 root  wheel   193787392 Jan  9 14:46 idpd.tgz       >>>>>>>

Modification History

2025-01-11 : Article Created