New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
Yeah, to be fair, the tapes I were looking at were oldschool - just straight tar archives straight onto the tape using standard UNIX tools. Even in the 90s there were much better backup tools available. So these backups didn't even have checksums, let alone error correction. You could probably go quite far using something like PAR2 and splitting up the files over multiple tapes by interleaving chunks between other customers so that a stretch of faulty tape doesn't damage much of each archive.
But the general principle of tape sticking and heads going out of alignment is analogue, real world stuff.
Anyway, not my intention to ruin your thread, just talking about some of the potential issues with tape over any other medium. If I was to use this, it'd really be recovery as a last resort, but then if I'm not regularly checking the backups, I'd not have confidence in them.
Hey, was interested but this comment caught my eye. Lots of small files sounds like how a lot of backup software will chunk and package files. Are there better defaults one should optimize to for tape for something like Restic, Borg, etc? Such as average 10mb chunk or something to that effect.
@Stored $24 a year for 1tb with no cost to retrieve. Seems very reasonable for cold storage. Of course you would want some restrictions to prevent abuse. Cool off period after retrieving files? Some minimum size? I'm sure some people will try to upload tons of tiny files without using tar and cause bottlenecks when others want to retrieve. Would be good to know the restrictions before I use this for side project stuff.
So generally you would want to pack as much you can and tape is not really suited towards being the direct destination. These tools do a full check or just dont work with glacier class storage. If you are familiar with aws deep glacier it is best to follow similar best practices.
What tool are you currently using. I am trying to keep focus on what people are actually currently using since there is not a catch all for every tool.
I will post a help page with restrictions soon. Currently they are very strict in the sense that the 1% will not enjoy the service for you if you hit limits let me know and I can raise them for you!
I know thats not a direct answer my hope is that I can quickly ease current limits. I have mentioned before my current user base is quiet users and businesses I have directly worked with to tailor to their needs.
With lowendtalk there is lots of abuse but my focus is someone like you. I have my own selfhosted tools and always hated being punished because of the few who abuse so I launched with those people in mind first.
Hope that long answered helped!
I'm not sure exactly what he's doing, but traditionally on a tape every time you write the the tape device, it adds a mark afterwards. Typically, you'd then use
tarto write an archive of multiple files to the tape as one "block" with a mark after it. You'd then use themtcommand to rewind the tape, fast forward or back a certain number of marks, erase the tape, add an EOF marker without an actual file, etc. So, if you want to access the 5th file / archive on the tape you'd do something likemt seek 4, which behind the scenes would bemt rewind ; mt fsf 4.If you have a lot of small files and want to recover them, unless you're keeping track of what block you're currently on, that'd be a lot of unnecessary rewinding and fast forwarding. Also, each of these marks uses up a reasonable chunk of tape, because they need to be identifiable when the drive is fast forwarding through the tape. If the files are small, you'd waste a lot of space that way.
When I used to run backups in the 90s, on each tape I'd have a full backup, followed by a small file with a timestamp, then repeated alternating incremental backups and timestamps. When I was running a backup, I'd fast forward the tape to the EOM marker, rewind a block and read the timestamp, then do an incremental backup from that timestamp, and finally write the timestamp the backup started at.
Where I worked I'd do an incremental backup during the day onto the end of a tape from a few days ago, and then just before I'd go home, I'd take the oldest tape (we had a weekly rotation so they were labelled day of the week), erase that and kick off a full backup on that tape.
If you had to restore, we'd hopefully have a full backup from the previous night, and if there were problems with that, the other tape I chose the day before would have an old full backup and incremental backup(s) to the morning of the previous day, and if that also failed, there should be another tape of the night before that and/or another tape of the morning before that, etc...
Should also add that reading the tape is much, much slower than fast forwarding, so it's sometimes good to split the first initial backup into several marked archives, so that if you're restoring you only have to process some of the tape. If you're using a very old school tar file (i.e. not compressed), that's less of an issue as you can fast forward a certain number of blocks and skip until the next TAR file header.
Yes lots of approaches the end user can take. I am working on per bucket configs with defaults based on the tool and some included always hot storage for indexs and other things that are typically small but helps avoid the full read back but that only covers a few tools.
Haha honestly its been fun trying to get out this edge use cases and obviously I can't support every use case but that's tomorrow's worry.
Also to your previous post you are not ruining the thread nor have I felt that way. Really I am just trying to keep my answers short and relevant as I can really geek out about all this stuff ha.
So really it sounds like chunk size or whatever a given backup tool may call it is irrelevant then, a whole bunch of them as part of an initial or incremental backup would get tar’d together. Compaction or pruning operations sound painful to the point of almost not being worth it, for a tape to really reclaim space sounds it may almost need to rewrite large swathes of data?
Yeah its not a fun process but on your side you don't really need to worry about it and is mainly a problem for me to solve.
But if you can just put a tarball together and then back that up you are good to go!
Ill post with more best practices later probably should have started this thread much sooner but here we are.