Fast Folder Backup on Ubuntu Using Multicore Compression

Paste Content

Fast Folder Backup on Ubuntu Using Multicore Compression

1️⃣ Install required tools

sudo apt update
sudo apt install pigz pv


2️⃣ Run the backup
Go to the folder where you want to save the backup and run:

cd /Server/
sudo tar -cf - www | pv | pigz > www-backup.tar.gz


3️⃣ Quick explanation

tar -cf - www → creates an archive of the www folder

pv → shows progress and speed

pigz → compresses using multiple CPU cores

Output: www-backup.tar.gz

The original www folder remains intact

4️⃣ Verify the backup

ls -lh www-backup.tar.gz

Comments

No comments yet.