Stop rsync from choking when it hits permission denied errors
Backup & Recovery (Rsync/Tar/Dd)
Stop rsync from choking when it hits permission denied errors
🧩 The Challenge
Backing up system directories as a standard user is usually a one-way ticket to a screen full of “permission denied” noise. You end up wading through miles of terminal output just to see if the actual data transfer worked or if it hit a real issue.
💡 The Fix
Use the rsync flag that tells the utility to ignore those noisy read errors so you can keep the backup process moving without the screen clutter. It’s perfect for home directory snapshots where you don’t care about system files you can’t touch anyway.
rsync -av --ignore-errors --delete /source/ /destination/
⚙️ Why It Works
Setting the ignore-errors flag prevents rsync from stopping the entire transfer process just because it ran into a file it wasn’t allowed to read. It handles the I/O error silently and just moves on to the next file in the list.
🚀 Pro-Tip: Always pipe your output to a log file if you’re running this in a cron job, otherwise you’ll never know if you missed something critical.
Linux Tips & Tricks | © ngelinux.com | 11/25/2026
