Skip to content

Snapraid

services.snapraid.contentFiles

SnapRAID content list files. Type: list of string

Default

[ ]

Example

["/var/snapraid.content""/mnt/disk1/snapraid.content""/mnt/disk2/snapraid.content"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.dataDisks

SnapRAID data disks. Type: attribute set of string

Default

{ }

Example

{d1 = "/mnt/disk1/";d2 = "/mnt/disk2/";d3 = "/mnt/disk3/";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.enable

Whether to enable SnapRAID. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.exclude

SnapRAID exclude directives. Type: list of string

Default

[ ]

Example

["*.unrecoverable""/tmp/""/lost+found/"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.extraConfig

Extra config options for SnapRAID. Type: strings concatenated with "\n"

Default

""

Example

'' nohidden blocksize 256 hashsize 16 autosave 500 pool /pool''

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.parityFiles

SnapRAID parity files. Type: list of string

Default

[ ]

Example

["/mnt/diskp/snapraid.parity""/mnt/diskq/snapraid.2-parity""/mnt/diskr/snapraid.3-parity""/mnt/disks/snapraid.4-parity""/mnt/diskt/snapraid.5-parity""/mnt/disku/snapraid.6-parity"]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.scrub.interval

How often to run {command}snapraid scrub. Type: string

Default

"Mon *-*-* 02:00:00"

Example

"weekly"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.scrub.olderThan

Number of days since data was last scrubbed before it can be scrubbed again. Type: signed integer

Default

10

Example

20

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.scrub.plan

Percent of the array that should be checked by {command}snapraid scrub. Type: signed integer

Default

8

Example

5

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.sync.interval

How often to run {command}snapraid sync. Type: string

Default

"01:00"

Example

"daily"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix

services.snapraid.touchBeforeSync

Whether {command}snapraid touch should be run before {command}snapraid sync. Type: boolean

Default

true

Example

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/backup/snapraid.nix