Compressing / Decompressing Backup Files With Pigz

1. Check Required Packages

Ensure the yum packages openssl and pigz are installed on your system.

2. Compress and Encrypt Files

Use the following command to compress and encrypt files:

tar -c -I pigz backup.dmp | openssl enc -aes-256-cbc -e -k mypassword > backup.tar.gz.enc

3. Decrypt and Decompress Files

Use the following command to decrypt and decompress files:

openssl enc -aes-256-cbc -d -in backup.tar.gz | tar -I pigz -x

Comments

Popular posts from this blog

Oracle Database Upgrade With OPatch Tool (RHEL/Centos/OEL)

POSTGRESQL UPGRADE WITH PG_UPGRADE UTILITY IN RHEL/CENTOS/OEL

Backup Recovery Scenarios