blog.minskio.co.uk

Content and theme behind minskio.co.uk
Log | Files | Refs

compiling-snapraid.md (1439B)


      1 ---
      2 title: "Compiling SnapRAID on Debian"
      3 date: 2019-01-10T09:43:00
      4 tags: ["Guides", "Linux", "Servers", "Snippets", "Software"]
      5 ---
      6 
      7 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.
      8 
      9 Debian doesn't include snapraid in it's repositories so we'll download and compile it from source, naturally!
     10 
     11 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!
     12 
     13 First, we'll need to install some a couple of common dependencies
     14 
     15 ```
     16 sudo apt-get update
     17 sudo apt-get upgrade
     18 sudo apt-get install gcc make wget
     19 ```
     20 
     21 Then grab the [latest release](https://github.com/amadvance/snapraid/releases), at the time of writing is 11.3
     22 ```
     23 wget https://github.com/amadvance/snapraid/releases/download/v11.3/snapraid-11.3.tar.gz
     24 tar -xzf snapraid-11.3.tar.gz
     25 cd snapraid-11.3
     26 ./configure
     27 make
     28 make check
     29 sudo make install
     30 ```
     31 
     32 Now, running `snapraid -V` should display the correct version number.
     33 
     34 Once compiled and installed, you can go about [configuring and using](http://www.snapraid.it/manual) the program.