30p87

joined 1 year ago
[–] [email protected] 38 points 4 months ago (1 children)

Noooooo what did you do to that poor shonky :ccc

[–] [email protected] 2 points 4 months ago

Considering "being ruined" is a state, and not a scale, the dev is already ruined, because it's not Linux.

[–] [email protected] 1 points 4 months ago

No. But somebody may be.

[–] [email protected] 1 points 4 months ago (2 children)

Yes, but

  1. it's unsafe, therefore not really Rust I'd argue
  2. it doesn't look as good
float Q_rsqrt(float number) {
   long i;
   float x2, y;
   const float threehalfs = 1.5F;

   x2 = number * 0.5F;
   y = number;

   i = * ( long * ) &y;
   i = 0x5f3759df - ( i >> 1 );
   y = * ( float * ) &i;

   y = y * ( threehalfs - ( x2 * y * y ) );
   return y;
} 
[–] [email protected] 1 points 4 months ago (4 children)
  • The C compiler, when I parse a &(float) as (long) (it's actually an evil floating point hack to run Quake III on an X86_64 CPU emulated in Scratch running on Spotifys Car Thing) (This would never be possible in Rust)
[–] [email protected] 2 points 4 months ago (7 children)

And I hate it. Nice concept, but I don't like neither, the language nor compiler.

[–] [email protected] 21 points 4 months ago (9 children)

No no, we do

time_t t = time(NULL);
struct tm tm = *localtime(&t);
tm.tm_year + 1900;

Everyone writes their web server in plain C, right?

[–] [email protected] 1 points 4 months ago

The local backups are done hourly, and incrementally. They hold 2+ weeks of backups, which means I can roll back versions of packages easily, as the normal package cache is cleaned regularly. They also prevent losing individual files accidentally through weird behaviour of apps, or me.

The backups to my workstation are also done hourly, 15 minutes shifted for every device, and also incrementally. They protect against the device itself breaking, ransomware or some rouge program rm -rf'inf /, which would affect local backups too (as they're mounted in /backups, but those are mainly for providing a file history as I said.)

As most drives are slower than the 1 Gbps ethernet, the local backups are just more convenient to access and use than the one on my workstation, but otherwise exactly the same.

The .tar.xz'd backups are actual backups, considering they are not easily accessible, and need to be unpacked and externally stored.

I didn't measure the speeds of a normal SSD vs the raid - but it feels faster. Not a valid argument, of course. But in any way, I want to use it as Raid 0/Unraided for more storage space, so I can have 2 weeks of backups instead of 5 days (considering it always keeps space for 2 backups, I would have 200- GB of space instead of 700+).

The latest hourly backup is 1.3 GB in size, but if an application is used which has a single, big DB that can quickly shoot up to dozens of GB - relatively big for a homeserver hosting primarily my own stuff + a few things for my father. Like synapses' DB has 20 GB alone. On an uneventful day, that would be 31 GB. With several updates done, which means dozens of new packages in cache, that could grow to 70+GB.

[–] [email protected] 1 points 4 months ago (1 children)

If it fails, I will just throw in a new SSD and redo the backup. I sometimes delete everything and redo it anyway, for various reasons. In any case, I usually have all copies of all files on the original drive, as local backup on the device and backup on the workstation. And even if those three should fail - which I will immediately know, due to monitoring the systemd job - I still have daily backups on two different, global hosters as well as the seperate NAS. The only case in which all full backups would be affected would be a global destruction of all electronics due to solar storms or a general destruction of earth, in which case that's the least of my problems. And in case the house burns down, and I only have the daily backups, potentially losing 24 hours of data, that's also the least of my problems. Yes, generally using Raid 5 for backups is better, but in my case I have multiple copies of the same data at all times, surpassing the 321 rule (by far - 622, and soon 623). As all of my devices are connected via Gigabit, getting backups from eg. the workstation after the PC (with backups) died is just as fast as getting backups from the local PC backup Raid itself. And using Raid 0 is better (in speeds) than just slapping them together in series.

[–] [email protected] 1 points 4 months ago (5 children)

Because that's what Raid 0 for, basically adding together storage space with faster reads and writes. The local backups are basically just to have earlier versions of (system) files, incrementally every hour, for reference or restoring. In case something goes wrong with the main root NVMe and a backup SSD at the same time (eg. trojan wiping everything), I still have exactly the same backups on my "workstation" (beefier server), on also a RAID 0 of 3 1 TB HDDs. And in case the house burns down or something, there are still daily full backups on Google Cloud and Hetzner.

[–] [email protected] 2 points 4 months ago (7 children)

256 GB root NVMe, 1 TB games hdd, 3* 256 GB SSD as raid 0 for local backups, 256 GB HDD for data, 256 GB SSD for VM images.

[–] [email protected] 12 points 4 months ago (8 children)

You misspelled KeePass

view more: ‹ prev next ›