Stop watching tar act like a black hole during backups

Backup & Recovery (Rsync/Tar/Dd)

Stop watching tar act like a black hole during backups

🧩 The Challenge

Everyone has stared at a terminal for twenty minutes while tar grinds through a massive directory, wondering if it’s actually doing something or if it’s completely hung. I’ve killed perfectly healthy processes before just because I got paranoid that nothing was moving.

💡 The Fix

Use the checkpoint flags to force tar to show you a pulse. It turns that void of silence into a progress indicator that lets you get back to your coffee without the anxiety.

tar --checkpoint=1000 --checkpoint-action=echo="Progress: %u records processed" -cvf backup.tar /path/to/data

⚙️ Why It Works

Adding that checkpoint flag forces the utility to report its status to stderr every thousand records, giving you a tangible signal that the filesystem is actually being read.

🚀 Pro-Tip: Use the –totals flag at the end of your command if you want a final summary of how much data you just shoved into that archive.

Linux Tips & Tricks | © ngelinux.com | 11/16/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted