From 70bb5d5a801428b0fb390abf79f19ffcf5e29c67 Mon Sep 17 00:00:00 2001 From: breadcat Date: Fri, 19 Jun 2020 12:23:15 +0100 Subject: Simple migration of existing posts to hugo format --- content/posts/compiling-snapraid.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 content/posts/compiling-snapraid.md (limited to 'content/posts/compiling-snapraid.md') diff --git a/content/posts/compiling-snapraid.md b/content/posts/compiling-snapraid.md new file mode 100644 index 0000000..2a9cfd3 --- /dev/null +++ b/content/posts/compiling-snapraid.md @@ -0,0 +1,34 @@ +--- +title: "Compiling SnapRAID on Debian" +date: 2019-01-10T09:43:00 +tags: ["guides", "linux", "servers", "snippets", "software"] +--- + +Recently I discovered [SnapRAID](http://www.snapraid.it/) as a parity based backup tool and found it to be extremely flexible and powerful, and is currently the backup solution I'm using on my own home server. While not suited to every use case, my current setup (rarely changing, incremental additions) fills the whole perfectly. + +Debian doesn't include snapraid in it's repositories so we'll download and compile it from source, naturally! + +Usually, I'd run this type of software through docker, however I generally prefer all underlying *core* services (samba/mergerfs/etc) to run on the host instead of inside a container. This may change in the future however! + +First, we'll need to install some a couple of common dependencies + +``` +sudo apt-get update +sudo apt-get upgrade +sudo apt-get install gcc make wget +``` + +Then grab the [latest release](https://github.com/amadvance/snapraid/releases), at the time of writing is 11.3 +``` +wget https://github.com/amadvance/snapraid/releases/download/v11.3/snapraid-11.3.tar.gz +tar -xzf snapraid-11.3.tar.gz +cd snapraid-11.3 +./configure +make +make check +sudo make install +``` + +Now, running `snapraid -V` should display the correct version number. + +Once compiled and installed, you can go about [configuring and using](http://www.snapraid.it/manual) the program. -- cgit v1.2.3