<div dir="auto">Consider raid + zfs + daily snapshoots</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">בתאריך יום א׳, 17 ביולי 2022, 16:50, מאת Shlomo Solomon <<a href="mailto:shlomo.solomon@gmail.com">shlomo.solomon@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I recently lost some files because of a bad disk - hardware problem.<br>
<br>
I do regular backups so I was not really worried, but I now see that I<br>
have a problem with my backup strategy so I'd like to know how others<br>
handle/prevent what happened to me.<br>
<br>
I backup files using rsync and I basically have 2 types of backups.<br>
<br>
My most important files are backed up every night. I do incremental<br>
backups using: rsync -aqrlvtogS --ignore-errors --backup<br>
I keep about 4 months of backups. So if a file is damaged, <br>
missing or accidentally deleted, I can find a good file - even if, for<br>
example I screwed up the file and only discovered the problem a few<br>
days later.<br>
<br>
BUT, all the rest of my files - music, videos, pictures, etc are backed<br>
up daily and weekly on 2 different physical drives using:<br>
rsync -qrlvtogS --delete --ignore-errors <br>
I use --delete to prevent accumulating garbage on my backup disks.<br>
<br>
So here's the problem: Because of a hardware problem, several files on<br>
one of my disks were lost. As a result, the daily backup script<br>
"thought" that those files should be deleted from the daily backup.<br>
Unfortunately, I did not notice the problem. A few days later, those<br>
same files were also deleted from the weekly backup. So they are lost.<br>
<br>
So on one hand, I need --delete to avoid keeping backups of old<br>
garbage, but on the other hand, the --delete option does not know if I<br>
deleted the file or if it's gone because of a hardware problem.<br>
<br>
<br>
<br>
-- <br>
Shlomo Solomon<br>
<a href="http://the-solomons.net" rel="noreferrer noreferrer" target="_blank">http://the-solomons.net</a><br>
Claws Mail 3.17.5 - KDE Plasma 5.18.5 - Kubuntu 20.04<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il" target="_blank" rel="noreferrer">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" rel="noreferrer noreferrer" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div>