Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Geek Stuff
#1
Hey, what process do you use for backups?

I screwed up, royally...

I use rsync -raz --partial --delete --log-file

I liked delete since it maintains the backup and deletes files that I delete from the source.  

I had a hard drive start to fail about six months ago, it was my music library.  After I did some patching and updated a new kernel then rebooted, I just didn't check for a few days and that drive didn't mount.  I thought oh shit, but was able to mount it manually.  I was thinking it just didn't spin up in time and just wasn't available.  But restarting the server a few times and it was all good, no issues with that drive.  I checked the backup logs and because it wasn't mounted the backup skipped over all of that media and left it alone.  Ok cool, I thought.  If/when the drive fails I'll be ok...

until....

It failed again on the 16th.  I usually only notice it when I try to stream some music and that's usually just when I'm driving.  So I check in on everything and that drive had a catastrophic failure, it's dead... dead... dead...  Never coming back.  Ok, no issues, I'll just order a new drive and restore, until I check the backup and all of that media is gone.  Looking at the logs it saw the empty html folder (that, the subfolders for subsonic and plex, and the music were all on that failed drive) and deleted the backup.  Oh crap...  

So now, I'm not sure how rsync works and determines it should delete or not.  The first time it left everything alone, maybe because the drive was there but it just wasn't mounted?  But when it failed completely the mount point was truly empty and so guh-bye...

Anyway, I'm just curious.  What process are you using to backup your server?
and so what uranus is a star - Rob
-----------------------
Kruger
Reply


Messages In This Thread
Geek Stuff - by Kruger - 02-23-2023, 02:16 PM
RE: Geek Stuff - by Blaze - 02-24-2023, 02:09 AM
RE: Geek Stuff - by Kruger - 02-24-2023, 02:22 PM
RE: Geek Stuff - by Blaze - 02-25-2023, 01:39 AM
RE: Geek Stuff - by Kruger - 02-27-2023, 06:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)