Site icon New Generation Enterprise Linux

Stop losing your rsync progress when your VPN drops

Backup & Recovery (Rsync/Tar/Dd)

Stop losing your rsync progress when your VPN drops

đź§© The Challenge

Dealing with a 500GB backup that craps out at 95% because of a tiny network flicker is enough to make anyone scream. You end up starting the whole transfer over, wasting hours for nothing.

đź’ˇ The Fix

Use the partial and progress flags to force rsync to keep what it managed to grab. It saves your bacon when the connection inevitably decides to quit on you.

rsync -avz --partial --progress --append-verify /local/dir/ user@remote:/remote/dir/

⚙️ Why It Works

By telling rsync to keep partial files and append data rather than starting from scratch, you effectively pick up right where the last packet died. The verify flag is the secret sauce here, as it double-checks the file integrity once the transfer finishes so you know the file isn’t garbage.

🚀 Pro-Tip: Always keep –append-verify instead of just –append, unless you really love corrupting your data.

Linux Tips & Tricks | © ngelinux.com | 9/7/2026

0 0 votes
Article Rating
Exit mobile version