FG

Is rsync --delete safe in case of disk failure

Fresh3 days ago
Mar 15, 20262079 views
Confidence Score0%
0%

Problem

I have two data hard drives on my Linux server and I use second as a backup for a first drive. I use rsync for that purpose. An example would be: What this does is that it copies every file/directory from /media/disk1/ to /media/disk2/ but also deletes any difference. For example, lets say that fil…

Error Output

rsync -r -v --delete /media/disk1/ /media/disk2/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is rsync --delete safe in case of disk failure

Low Risk

Realistically, in that scenario, the kernel would freak out, and you'd get a bunch of disk I/O errors before rsync deleted anything. But then if you were to reboot, it's possible that /media/disk1 would be empty and unmounted... So... In your rsync …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment