Stop rsync from choking when you hit a file access error
Backup & Recovery (Rsync/Tar/Dd)
Stop rsync from choking when you hit a file access error
🧩 The Challenge
Everyone has had a massive rsync job fail halfway through because some random temporary file or permission error tripped the exit code. You wake up the next morning expecting a clean backup only to find it crashed at 3 AM.
💡 The Fix
Throw the ignore-errors flag in there to keep the transfer moving even if a specific file hits a snag. It saves you from babysitting long-running jobs that hit minor speed bumps.
rsync -av --ignore-errors --delete /source/ /destination/
⚙️ Why It Works
Adding this flag tells the daemon to push through non-fatal IO errors instead of killing the entire process immediately. You’ll still see the errors in your logs, but the bulk of your data gets home safe.
🚀 Pro-Tip: Use –partial-dir to keep partially transferred files separate so you don’t end up with corrupted junk in your target directory.
Linux Tips & Tricks | © ngelinux.com | 11/21/2026
