r/RigBuild • • 3d ago

Does RAID count as a backup?

looking into setting up RAID for my storage drives because I don't wanna lose all my files if one drive suddenly dies. But I'm a bit confused about whether RAID actually counts as a proper backup or just protects against certain drive failures. Like if I have two drives mirrored, does that mean my data is safe or can I still lose everything if I accidentally delete something or get hit by malware? Also what happens if both drives fail or the whole PC gets damaged? I've seen people say RAID isn't backup at all, so what's the point then?

0 Upvotes

87 comments sorted by

3

u/physical0 3d ago

No, Raid is not a backup. If you accidentally deleted or overwrite a file, does your RAID keep a copy so that you can restore it?

RAID reduces the impact of hardware failure and lets you simply replace a disk instead of replacing a disk AND restoring your backup.

2

u/Unhappy_Break9996 2d ago

So RAID is more about keeping things running if a drive dies rather than actually protecting your files from everything. Still seems useful, just need an actual backup on top of it.

1

u/paulstelian97 2d ago

That’s exactly how you should think about it.

1

u/Nandulal 14h ago

well it can increase speed on spinning disks which is pretty nice on cheap old storage.

1

u/paulstelian97 14h ago

Read speeds can be increased by a good RAID. Write speeds not as much, since all the disks need to write at the same time. RAID5/6 may increase speeds for both.

1

u/physical0 13h ago

This depends on the controllers write-back strategy. Small writes could appear to happen as fast as a memory write and be deferred until the disk is idle.

Or whiile one disk is performing the next read operation, another can be performing a write. This approach could lead to inconsistency in a raid if interrupted, but could correct itself as long as all the disks were available after recovery.

1

u/paulstelian97 36m ago

I tend to use software RAID and particularly the ZFS kind, where if you have some sort of split brain (two inconsistent copies) it can cleverly pick the correct copy and fix the other.

2

u/mcds99 2d ago

That is a very good answer I administered Compaq servers and RAID sometimes one disk failure would corrupt the whole file system. Without backup the data is gone. If a disk would fail it would be hours before regeneration could complete, even off line.

Years later we made a number of file servers redundant so if one failed the other would pickup. Business needs to continue and hardware failure was not fun especially at 2am on an Exchange server.

1

u/Got-It101 2d ago

Do you backup EVERY iteration of each file?

1

u/PhotoFenix 2d ago

For most files of mine, yes. Seafile copies every version of my files to my NAS, NAS syncs with off-site nightly.

1

u/w1n5t0nM1k3y 2d ago

For some situations this is the case. With computer code most developers with keep a repository of their code for every relevant change. It won't be down to each character typed, but each functional iteration with have its own version

0

u/[deleted] 2d ago

People with automated backup solutions generally use a rolling backup. When a file changes it keeps some number of versions, there are a lot of methods to determine which versions and how many to keep.

0

u/Got-It101 2d ago

any of which can can applied to a raid 1

2

u/paulstelian97 2d ago

Literally no. A RAID doesn’t keep previous versions.

1

u/Got-It101 1d ago

literally YOU decide what and where to upload to your nas. Sorry I wasn't clear about that.

1

u/paulstelian97 1d ago

Do you know what backup means? A second copy of the data, independent of the first, that can be used if the main copy is lost, corrupted, changed in a way that needs to be undone. A NAS by itself isn’t a backup. RAID isn’t a backup. Not on its own at least.

Your comment doesn’t connect with this meaning.

1

u/Got-It101 1d ago

And how exactly is your file sent to a backup drive(s) and your file sent off to a NAS? Is a JBOD different from a NAS, yes, do they both store files separately from the origin drive?

1

u/paulstelian97 1d ago

The fact that the NAS is the second copy of the data is what makes it a backup. That is true whether it is single drive, RAID 0 spanning several drives, RAID1, RAID1 with 3 copies, other forms of RAID. The separation between the primary data on your laptop or phone and the copy on the NAS is what makes the backup.

6

u/Doug2825 3d ago

Raid protects from hardware failure. It does nothing to protect against data loss from mistakes, malware, or bugs. Which is why it is not considered a backups.

It is useful in business settings since it is very fast to recover from a drive failure with raid compared to a full backup. But it does nothing to help with malware or mistakes.

1

u/Jankypox 2d ago

No. A RAID mirror is for redundancy in case of a drive failure / replacement.

1

u/Unhappy_Break9996 2d ago

Ah okay, that clears it up. So it's more about keeping things running if a drive fails, not actually having a backup I can restore from. Thanks for explaining!

3

u/thaddeusk 3d ago

RAID is redundancy, not a backup. If you lose your whole machine or NAS, your data is gone. Lose too many drives at once, data is gone.

The point is to be able to have a single drive or two fail and not lose your data, but for anything that you can't afford to lose or should also have an off-site backup, like cloud storage or something.

1

u/mlee12382 3d ago

Ideally your raid drives are bought at different times and potentially from different sources so you don't have a full array that's all part of the same production run. This greatly helps reduce the likelihood of multiple drives failing at the same time. It been known to happen for multiple drives from the same batch to fail in close proximity to each other time wise.

The overall likelihood of multiple drives failing at the same time, outside of some outside interference or conditions, is pretty low, though not unheard of.

1

u/MrFartyBottom 3d ago

It is redundancy, not a backup. You need to be able to restore from a backup in the event of something like a hardware failure or ransomware.

1

u/Opulence_Deficit 3d ago

Assuming we're talking about RAID mirror, what it does is to give you a warning about HDD failure.

Imagine a singular HDD fails: boom, your data is gone, kthxbai.

Imagine a mirrored HDD fails: boom, but your data is still on the other one, and now you've been warned, you have enough time to order a new drive RIGHT AWAY, wait for it to arrive and replace it to clone the data back.

That's all that RAID does. Because all HDDs fail sooner or later, it's well worth it, just for the heads up.

There's ofc also RAID stripe, which is good only for data you're OK with losing right from the beginning. Like caches, TEMP, and alike.

1

u/PeyredB 3d ago

No, my NT instructor was very clear: RAID is not a substitute for backups. It helps prevent failures, but you may need to restore from a failure just the same. You also can't get a deleted file back if you have no backups.

1

u/rfdzn 3d ago

not really, it's a way to protect from storage failure. a backup rule is always the 3 2 1 rule.
Do i follow it? No i can't afford it in this day and age

1

u/External-Log-6542 3d ago edited 3d ago

depends on the importance of the files and your budget

it's the cheapest realtime backup option but it won't save you from physical disaster (or malware or accidental deletion)

a combination with some periodic backup in a separate physical location is best

personally i do periodic backup with macrium to a separate drive in my laptop for personal files (because it's is just as cheap and is easier to setup, doesn't fix disasters, but gives you a bit of grace period for accidents or malware)

plus "version controlled backup" (GIT) of work files to a remote server (these are important and all history must be preserved)

plus realtime backup of photos and stuff from my phone to google (no other way on a phone)

plus raid for torrents i host (cheap and torrents themselves provide an additional layer of backup)

plus periodic snapshot and rsync of VPS i use (the VPS providers use raid themselves but you never know when something might hit them)

1

u/Educational-Bid-3533 3d ago

Kind of. It's better than nothing, but it's still possible to get boned. I've never found raid to be necessary, when having had a mobo with the feature.

1

u/Classic-Rate-5104 3d ago

Raid protects against most hardware failures but not against software failures or human failures. You can make it somewhat more robust using snapshots (that can help against software failures and human errors), but still you need a robust backup system. Your system can go in fire, or otherwise damaged and then you loose all your data

1

u/W31337 3d ago

RAID is not backup. RAID protects against component failure. You can't go back to a backup using it.

A backup is a point in time you can go to.

1

u/W31337 3d ago edited 3d ago

RAID is not backup. RAID protects against component failure. You can't go back to a backup using it.

A backup is a point in time you can go to.

So with a malware attack your RAID disks will both get their files deleted.

What's the point of RAID?

  • No downtime during COMPONENT failure
  • No restoring backups during COMPONENT failure

So RAID is necessary for basically every corporate workload with a service level.

And if all disks in your RAID array fail you are fucked and someone needs to explain why they ignored the first failure for so long

1

u/apachelives 3d ago

RAID 1/5/6 etc is more about up time, it does not replace a backup. It will not protected against corruptions deletions encryption etc.

1

u/Kraegorz 3d ago

RAID is jsut a redundancy. Its not a backup. (Unless you have RAIDED drives specifically used for backup of main drives). People that run even the most redundant RAID setup will tell you horror stories of having to rebuild RAID arrays when it fails and how long it can take and mistakes that can be made.

The cheapest option might be to get an external drive (or internal) specifically made for backups. If you are scared of fires/theft/natural disasters type of thing, then I would suggest online (like iDrive, google Drive or something else).

RAID basically is used to expand capacity so you have a larger X drive, or for speed (RAID 0/5) or for redundancy in case of data fault/write errors etc, mostly used with smaller files like on a file server.

Ultimately.. raid really isn't worth it unless you really need it (and you will know if you do). But its a pain in the butt to set up and maintain. If you have a lot of HDD drives and want redundancy, i would suggest something like Stablebit Drivepool. Its a faux raid setup with much better redundancy and easier to recover from.

1

u/gadget850 2d ago

I have two mini PCs with external drives that mirror to each other. One is in the basement of the house, and the other is in my detached office.

1

u/Von_Wintermond 2d ago

Nope, RAID isnt Backup. Make a Backup strategy for Ur usecase. No backup, No Mercy.

1

u/Then-Potato-2020 2d ago

Depends on the definition of "back up". You can erase a raid, or mess with it so there is not a "real" 2nd copy anywhere, but also in raid other than 0, you can save data in a failure of a disk.

In classic backup, you also save data in a failure of 1 of the disks you had the backup, but the extra protection is that you can't mess up 2 separated disks at once (probably)

1

u/Sad_Pear_3709 2d ago

Not on it's own.

1

u/cthart 2d ago

No

RAID gives you
a) protection against disk failure so you don't need to resort to your backups;
b) potentially, performance improvement (depending on the RAID level);
c) the ability to have bigger volumes than can be achieved with a single disk

1

u/Grand-Satisfaction55 2d ago

Depends on your RAID configuration. RAID 1 could be considered a backup.

1

u/Nandulal 14h ago

lol only with cheeks

1

u/Zebrainwhiteshoes 2d ago

It's a bit better than just a single drive, but no. 3 backups, 2 places, 1 offline 3-2-1

1

u/YourMasterEdd 2d ago

Not a speacialist on RAID's, but as far as I know that is primary for servers (complicated, saves everything, expensive).

For certain files just use extra HDD. They live longer than SSD's and are much easier to recover (if possible at all).

Backup of apps or any software is just waste of space and time in most cases.

You will never be safe from total total failure.

Extra HDD (even isolated from everything), good PSU, UPS are things to go for extra security.

If there is no sensitive data, GOOD cloud storage can help a lot, since good ones have their own several backups. Chances of them to fail are close to 0. Also in long run they will be cheaper than building your own rig for apropriate backups.

1

u/Got-It101 2d ago

I still don't get why a mirror raid ISN'T a backup, especially since it can be located anywhere. Off site second copy works but HILARIOUS that"cloud" is safe or secure. Your data can be at best inaccessible at worst lost or stolen and all you will get is a shrug and a corporate "sorry you had this experience"

0

u/[deleted] 2d ago

RAID can be used by the backup but itself is not a backup. If you get hit with one of those encrytion attacks and only have RAID, everything is gone. If you delete a file accidentally RAID doesn’t make a difference.

RAID is for uptime and recoverability from hardware failure only.

0

u/Got-It101 2d ago

and if you do the same to your backup? Same thing. Unless you keep your backup handy it's old news.

0

u/[deleted] 2d ago

I don’t understand your point, yes if you have multiple backup systems and you delete a file from all of them, then you don’t have the file anymore and you don’t deserve that file.

1

u/Got-It101 2d ago

the point is a mirror raid IS a backup, depends on how you use it

0

u/[deleted] 2d ago

Ultimately it becomes a semantics question and whether or not you believe a backup needs to be able to restore lost data.

RAID doesn’t help you recover lost data. It can help prevent you from losing data due to a drive failure, which is one of many data loss.

You could also consider, RAID give you extra drives, backup power supply, fan or whatever else gives you multiple of those. RAID does not give you multiple sets of data, unless it is RAID 1 and you break the array (which isn’t worth discussing).

1

u/Got-It101 2d ago

nope, if it's lost on your local machine it's still there on your NAS raid 1 unless you have written over it.

1

u/paulstelian97 2d ago

That logic applies equally to single individual disks too though. Yet it’s not a form of backup because you can’t control when the overwrite happens.

A backup needs an official, direct and reliable way to restore. Not data that randomly vanishes soon.

1

u/Got-It101 1d ago

Apologies I was referring to a nas raid 1

1

u/paulstelian97 1d ago

Well, the RAID1 itself doesn’t itself make a backup. When you delete or corrupt data, you corrupt both copies of it so there’s no undo.

The RAID protects against exactly one thing — if a disk crashes, you still have the other one running.

→ More replies

0

u/[deleted] 2d ago

Well you did it. Time to delete my account again…

1

u/Got-It101 2d ago

???

0

u/[deleted] 2d ago

You have to be trolling…. And I have to stop responding.

In the slight chance you are for real:

If your data is on one system only, and that system is configured in RAID the data is NOT backed up, RAID is not a backup.

If you have data on one system and a copy of the data on a NAS, the NAS is a backup regardless of if it is configured in RAID or not. It can be in RAID, but the RAID has no impact on whether the data is backed up or not.

→ More replies

1

u/HighPhi420 2d ago

raid can be one of the back ups.
Back ups are 3, 2, 1. 3 backups, 2 on site, 1 off site(This is ONLY for the things you can not redownload if lost)
RAID is good for a mass network attached storage system, but is not the end all of back ups. :)

1

u/a1rwav3 2d ago

Raid is not backup, based on the raid type it is protection against hardware failure only. It won't protect you against:

  • malwares, you need an anti virus and common sense for that
  • stealing, you need software security for that
  • home destruction, you need different site backup Etc. Etc.

1

u/Fat-Opportunity357 2d ago

No, RAID just increases the data availability and minimizes the probability of dataloss (due to failure of your equipment).

Only a copy that is not accessable (aka not compromisable) and therefor not prone to any kind of attack or accidental destruction is a real backup.

A backup should be stored away from your data so it can't be compromised. A RAID will delete all it's data if you want to. It doesn't differentiate between accidental and deliberate deletion of all your data.

1

u/vegansgetsick 2d ago

RAID is not a backup because if you run rm -rf *, it does not save your files.

RAID is used to keep running stuff if a drive is faulty. So the system keeps running 24/7.

I have both RAID + backups.

1

u/AMissionFromDog 2d ago

if you delete a file accidentally on your mirror volume, it's gone from both sides of the mirror. That's not a backup.

1

u/TheSchlaf 2d ago

No. It's a stop loss against loss of service. Backups are always separate.

1

u/Designer-Wolverine47 2d ago

Raid will protect you from hardware failure. It won't protect you from accidentally deleting or overwriting files. You still should have backups. Preferable at least two copies, stored in different locations.

1

u/cptgrok 2d ago

The point of a Redundant Array of Independent Disks is the Redundant part. If all of your data sits on a single disk then you have a single point of failure; Lose the disk, lose everything. RAID, generally and depending on the number of disks and configuration, will tolerate disk failures while preserving all of your data.

However, that array of however many disks still only contains one live copy of your data. Should the whole array catastrophically fail, which is rare but possible, or more disks fail than the protection level can compensate for, you still lose data. If the live data is damaged, destroyed or encrypted and held hostage, you still lose the data. Maybe not everything, but something.

This is why we still harp on backups. Having an additional copy stored off of your main system allows you to recover from a broad array of problems. Having RAID only protects you from sudden, unpredictable, infrequent disk failures. RAID cannot protect you from everything.

1

u/Responsible_Feed4512 2d ago

No. It's a safeguard against accident or hardware failure

1

u/Lance-Boyle-666 2d ago

RAID is great until you lose a drive, and while waiting for the replacement to arrive, another drive fails. You still need backups.

1

u/garster25 2d ago

I consider mirrored raid one level of a multi tiered backup. Need 2 more levels.

1

u/Few_Example9391 2d ago

Yes. You have mirrored, paired drives

1

u/Xeno_man 2d ago

NO!

Raid is not a back up. Even Raid 1 or Raid 10. Raid is great for system stability. One drive fails and you can swap it out for a new one with next to zero down time but it's not a back up. Consider a virus or bugged software. Virus sends a command to delete all of your files. Well it deletes your files on both drives because they are mirrored. Want to restore your files? Well they are gone on both drives so you better have a real backup.

1

u/NooneLikesYouBill 2d ago

No, not unless you backup the raid array.

1

u/chouettepologne 2d ago

Multiple backup is a backup. I have external SSD, external HDD and two cloud storages. It's not expensive in total, much cheaper than NAS. Let's back to RAID. Modes where you loose some space protect you from a single disk failure. It's better than nothing.

1

u/buttchuckjones 2d ago

I will die on this hill. RAID is not a backup. You get hit by malware? Screwed. You accidentally delete something? Screwed. The controller fails and commits bad data to disks, Screwed. But, its better than nothing I guess.

How it protects you depends on the type of RAID. Here is a quick rundown of the types of RAID, because some RAID types actually dont give you any redundancy.

RAID0: 2 drives minimum, no redundancy. You get faster read and write, but losing a disk means you have lost data.

RAID1: Two drives, mirrored. If one fails, all data is safe. You need to replace the drive before the other one fails. Be aware that replacing a drive is very IO intensive, so if you are unlucky, your second drive could fail.

RAID5: 3 drives minimum. You can lose one drive. The advantage to this is you have more space than a RAID1.

RAID6: 4 drives minimum, you can lose two drives. You lose some space compared to a RAID5, but higher resilience.

RAID10: 4 drives minimum. You make two mirrored pairs and stripe them. Also called a RAID1+0, because that is literally what it is. You have half of the capacity, but double read and write speeds. You can also lose 1 drive, or 2 drives. It depends on which drives fail. Again, you have two mirrored pairs, so if you lose 1 drive in each pair, you still have your data. If you lose 2 drives in one pair, you have lost data

RAID50: Very similar to a RAID10, but instead of striping a RAID1, you stripe a RAID5. Same concepts apply

RAID60: Same thing, but striped RAID6.

1

u/New-Inspection7034 1d ago

No, RAID is not backup. However, it is high availability and failover.

1

u/Stunning-Purpose9144 1d ago

No raid is not backup

1

u/vulperineblues 23h ago

Redundancy is not a backup. It’s a protection against component or software failure that allows you to continue operations while fixing it. In case of RAID redundancy, it’s continuous operation in case of a disk failure.

Backups are about making a safe copy of data preserving its state and integrity at a specific point in time. It allows you to “travel back in time” in case anything alters or destroys the data in an unwanted way; personal error (deleted/overwriting a file by accident), data corruption, malware, physical failure, disaster, etc

1

u/Tony-2112 15h ago

No. RAID is for resilience not recovery.

1

u/Malf1532 10h ago

RAID 1 is just 2 drives mirroring each other in realtime. Bit for bit. So if one fails, you're still exactly where you were. So if that's what you want by backup then yes.

1

u/a_rogue_planet 3d ago

Meh.... Sorta, sorta not, but mostly not. Hardware failure is the biggest risk most people need to mitigate, and for that it is extremely good. I make regular back ups of my important data on an external drive and that's basically good enough for me.

1

u/Nandulal 14h ago

for sure bro just rub your butt cheeks on it for extra storage