Formerly /u/neoKushan on reddit

  • 0 Posts
  • 39 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle





  • I have a Nas running nextcloud for general ease of automatically backing up anything important from my phone or pc.

    Nextcloud and important things from the server are backed up using a tool called “restic” which honestly does not get enough mention here.

    Restic is amazing, it supports just about every cloud storage provider out there - could be Amazon S3 or backblaze, but it could also be OneDrive or Google drive. If you’ve got some cloud storage somewhere, restic will probably support it.

    Restic is super clever, it takes snapshots and only backs up any data that has changed - so it’s very space efficient and fast. I back up hourly, it only takes a few mins and if nothing has changed, there cost is also basically nothing. But you can pull back files from any snapshots you keep and when you delete a snapshot, it only deletes data that’s not used by any snapshot.

    This means you can have backups going back months or years at very little data cost. You can restore a full backup, or just a specific file if you need.

    Seriously, restic is amazing and more people need to know about it.













  • In 99 cases out of 100, you won’t be able to hand craft assembly better than a good compiler can - partly due to compilers being much better and partly due to the skill level required. 20 or 30 years ago compilers weren’t as good and a reasonably competent person could craft more optimised assembly but these days compilers are pretty damn good and you need some extra level of ability to best the compiler.

    However, there’s still that 1 time out of 100 and given how resource intensive ffmpeg is, it’s worth spending that extra time to hyper optimise the code because it’ll pay off massively.