Site icon New Generation Enterprise Linux

Keep your backups from exploding when the disk fills up

Backup & Recovery (Rsync/Tar/Dd)

Keep your backups from exploding when the disk fills up

đź§© The Challenge

You are mid-backup, the copy has been running for hours, and suddenly everything crashes because the destination disk hit zero bytes. Losing the whole archive because of a few stray gigabytes is the fastest way to ruin a Friday afternoon.

đź’ˇ The Fix

Use a partial flag that forces the tool to stop gracefully when it hits a disk space error instead of leaving you with a corrupt, unrecoverable mess. It saves your sanity by keeping the existing data intact.

rsync -av --partial-dir=.rsync-partial /source/path/ /destination/path/

⚙️ Why It Works

This technique instructs rsync to tuck away the interrupted pieces in a hidden directory rather than just dumping them into your destination tree. It basically lets you resume where you left off after you delete some junk or swap in a bigger drive.

🚀 Pro-Tip: Always pair this with –append-verify if you’re working with massive files, so it double-checks the data integrity on the resume.

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

0 0 votes
Article Rating
Exit mobile version