Question Backing up data to an SSD ?

Mawla

Reputable
May 21, 2021
68
0
4,530
I have a SATA-USB adapter and am thinking of using some SATA SSDs as one method of backing up my data. I understand that SSDs can lose data over time from cell leakage so that they have to be "recharged" now and then.

So, is it enough to plug in the drive via the adapter every few months? And for how long each time - a few seconds, a minute or longer?

I'm aware that there can be no absolute guarantee of data safety with any storage medium. My question is about how the technology behaves.
 
Are you only going to make backups every few months? Or are you going to have a large number of drives that you rotate through over the course of months? Most people only really need to have a week's worth for home users, and just keep the drive plugged in all the time to do daily incrementals/differentials.

They only lose data if they're left unpowered for a really long time. If you're cycling through them, it won't be an issue. You really have to actually rewrite the cells to refresh them and avoid bit rot due to charge leakage. The wear levelling algorithms do some of that during normal usage, moving data around to make sure the cells are evenly used, but you can't be sure every bit of data was rewritten at some point, and I think just plugging a drive in for some time isn't going to be enough. (After all, the drive controller would also need to track how long it has been since each cell was last written to in order to know if it needs to be refreshed, otherwise it might be adding more writes than necessary and shortening the life even further.) Copy all the data from one drive to another, do a verification pass, then secure erase the original (or just delete everything and let TRIM/garbage collection have time to run). Or move it off of the drive temporarily, then move it back, but of course you're adding writes to whatever temporary location you use and you need all that space to do it.

If you're going to have 3 months' worth of backups and rotate drives, then you're not likely to lose any data to leakage on any during that time. If you're ARCHIVING them or having a really long backup rotation period and going to have them left unused for a year or more, then yeah, you might want to have an extra few so you can cycle through doing the transfer process, moving the "oldest" up in the queue each time.

With TLC and even worse QLC, the amount of time that you can let them sit can be much shorter than MLC or SLC, but a few months ought to be fine. Supposedly JEDEC requires them to last a full year unpowered before losing data, but that's a new drive, assuming it adheres to standards, and many have been found to last far longer. As they get used, the time shortens, but that requires a considerable amount of writes.
 
Are you only going to make backups every few months? Or are you going to have a large number of drives that you rotate through over the course of months? Most people only really need to have a week's worth for home users, and just keep the drive plugged in all the time to do daily incrementals/differentials.
Let's keep it simple and think in terms of archiving data that will seldom need to be accessed or altered.
You really have to actually rewrite the cells to refresh them and avoid bit rot due to charge leakage. The wear levelling algorithms do some of that during normal usage, moving data around to make sure the cells are evenly used, but you can't be sure every bit of data was rewritten at some point, and I think just plugging a drive in for some time isn't going to be enough.
OK, let's say I have a drive installed in a computer that's in regular use but this particular drive is never read or written to after initially backing up some data on it. Are you saying that there's a good chance of losing data anyway due to bit rot? This is not about drive failure but about the natural process going on inside the drive.
 
Last edited:
OK, let's say I have a drive installed in a computer that's in regular use but this particular drive is never read or written to after initially backing up some data on it. Are you saying that there's a good chance of losing data anyway due to bit rot? This is not about drive failure but about the natural process going on inside the drive.
I expect it would be a possibility, if there is simply no activity at all, as there would be no blocks getting written or erased. (Windows though might just write data to a drive sometimes for no particular user reason so maybe that would help.) I think some drives at least do also have leakage mitigation in the controller which might actively do that sort of thing in the background, specifically added after the raft of issues when this was first found to be an issue.

I think 6 months would be fine, even a year or two. Consider your normal OS drive. How many gigs of data just sit there, having been written during installation and never needing to be changed? Even just the log files that aren't modified would be taking up blocks like that. We don't tend to worry about all those, and updates don't modify every OS file.

If you're really trying to archive, you need to be looking at tape, or maybe optical media if it's not REALLY long-term. Tape is better for mass archiving of course so you don't have to swap discs constantly. SSDs are NOT considered reliable for archiving, and even magnetic hard drives have turned out to have limited lifespans when they're just left unpowered for decades.

What is your other backup system? Is this the "take a copy once a month and send it offsite to be kept for a year or 5 years" part and you've got daily backups or hourly backups that will be kept locally and rotated more often, with a shorter retention period?
 
OK, let's say I have a drive installed in a computer that's in regular use but this particular drive is never read or written to after initially backing up some data on it. Are you saying that there's a good chance of losing data anyway due to bit rot? This is not about drive failure but about the natural process going on inside the drive.
If it is installed in the PC, it is being run and read.
You might not open it in File Explorer, but the system is.

No problems there.
 
  • Like
Reactions: CountMike
I think SSDs perform automatic background scanning and they may pre-emptively rewrite weak LBAs.

https://www.anandtech.com/show/14543/nvme-14-specification-published

For proactively avoiding unrecoverable read errors, NVMe 1.4 adds Verify and Get LBA Status commands. The Verify command is simple: it does everything a normal read command does, except for returning the data to the host system. If a read command would return an error, a verify command will return the same error.
Some SSDs will react to a fixable ECC error by moving or re-writing degraded data ...
The Get LBA Status feature allows the drive to provide the host with a list of blocks that will probably result in an unrecoverable read error if a read or verify command is attempted. The SSD may have already detected ECC errors during automatic background scanning, or in severe cases it may be able to report which LBAs are affected by the failure of an entire NAND die or channel.
 
  • Like
Reactions: CountMike
Regularly powered-on SSDs won't have issues with this type of bit rot. How many Windows and program files are written to the disk on installation and never re-written again despite years of use? People would have to be reinstalling stuff all the time if SSDs could still rot despite being regularly powered on and off.

Unpowered SSDs can get bit-rot, as described.

This sounds like one of those XY problems though: instead of asking about your actual problem (here's the kind of data I have and how it's stored, what backup system should I have?) you're asking about your idea for the solution (how do I stop SSDs losing my backup data over time?). It's unclear why you're so set on using SSD to archive stuff, especially since you talk about never reading/writing the drive after backing up. Plus talking about effectively just storing your archive SSD inside your PC isn't great, since for a couple of reasons you shouldn't have the only copies of your data stored on the same PC even if it is duplicated onto more than one drive; and an SSD inside a PC might not rot but it can still fail without warning.

For my stuff, as a minimum there's the data on the working SSD inside the PC, a backup on an internal SSD, a backup on an external on-site HDD and a backup on an external off-site HDD. There's just no real benefit using SSD for the external drives but there are downsides.

In your case if you just want to archive a load of stuff and forget I'd suggest an external HDD and some CD-R discs, at least. Keep one set off site, and make sure you regularly try and access or restore the data from each every few months.
 
If you're really trying to archive, you need to be looking at tape, or maybe optical media if it's not REALLY long-term.
I bought a barely used external SAS LTO4 drive back in 2018 for the equivalent of US $100 and periodically archive to 800GB tape as my data collection increases. I abandoned 25G Bluray for archives around the same time and Sony have recently announced they're stopping optical disc production.

I keep data scattered across multiple systems and never on just one machine in case of disasters, e.g. Ransomware attack, PSU explodes, another nearby lightning strike, etc. I keep some machines permanently isolated from the internet to reduce their susceptibility to virus attack, but nothing's 100% safe. Look at what happened to the dinosaurs.


Are you saying that there's a good chance of losing data anyway due to bit rot? This is not about drive failure but about the natural process going on inside the drive.
To check for bit rot on my TrueNAS servers, I can run a regular "ZFS scrub". If it detects errors, I check copies of the same data on other servers, erase the bad files and replace with good data.
https://www.reddit.com/r/zfs/comments/wacsdg/how_often_do_you_find_bit_rot_with_zfs_scrub/

When bit rot happens quietly in the background, you'll be glad you made enough copies, or upset if you didn't.
https://geekflare.com/cybersecurity/bit-rot-prevention/
 
I appreciate your interest and concerns, everyone. But I made it clear at the beginning that I'm asking about the technology, not about the best way to back up data.
......am thinking of using some SATA SSDs as one method of backing up my data.
I'm aware that there can be no absolute guarantee of data safety with any storage medium. My question is about how the technology behaves.
I know about - and use - other methods of backup - online, HDD, optical and thumb drives, etc. SSDs are mechanically robust, small and light, fast and easy to connect (I get up to ~1Gbps with an adapter on a USB 3.2 Gen2 port).

And the cost per GB is no longer prohibitive. I have both an M.2-to-USB dual NVMe/SATA adapter and a 2.5-inch SATA-USB adapter. Heck, I've been using a Samsung 860 EVO as a superfast "thumb drive" for transferring files between computers for the past few years.