Created
April 10, 2018 17:32
-
-
Save vamega/5d62200a944d4e415b3aca1ddb178540 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#jinja2: trim_blocks: "true", lstrip_blocks: "false" | |
# Example configuration for snapraid | |
# Defines the file to use as parity storage | |
# It must NOT be in a data disk | |
# Format: "parity FILE_PATH" | |
{% for disk in disks.parity %} | |
{% if loop.index1 != 1 %}{{loop.index1}}-{% endif %}parity {{ disk.mount_point }}/snapraid.parity | |
{% endfor %} | |
# Defines the files to use as content list | |
# You can use multiple specification to store more copies | |
# You must have least one copy for each parity file plus one. Some more don't hurt | |
# They can be in the disks used for data, parity or boot, | |
# but each file must be in a different disk | |
# Format: "content FILE_PATH" | |
{% for disk in {{ disks.data + disks.parity }} %} | |
content {{ disk.mount_point }}/snapraid.parity | |
{% endfor %} | |
#content /var/snapraid.content | |
#content /mnt/disk1/.snapraid.content | |
#content /mnt/disk2/.snapraid.content | |
# Defines the data disks to use | |
# The order is relevant for parity, do not change it | |
# Format: "disk DISK_NAME DISK_MOUNT_POINT" | |
disk d1 /mnt/disk1/ | |
disk d2 /mnt/disk2/ | |
disk d3 /mnt/disk3/ | |
disk d4 /mnt/disk4/ | |
disk d5 /mnt/disk5/ | |
disk d6 /mnt/disk6/ | |
# Excludes hidden files and directories (uncomment to enable). | |
#nohidden | |
# Defines files and directories to exclude | |
# Remember that all the paths are relative at the mount points | |
# Format: "exclude FILE" | |
# Format: "exclude DIR/" | |
# Format: "exclude /PATH/FILE" | |
# Format: "exclude /PATH/DIR/" | |
exclude *.unrecoverable | |
exclude /tmp/ | |
exclude /lost+found/ | |
exclude downloads/ | |
exclude appdata/ | |
exclude snapshots/ | |
exclude *.!sync | |
exclude .AppleDouble | |
exclude ._AppleDouble | |
exclude .DS_Store | |
exclude ._.DS_Store | |
exclude .Thumbs.db | |
exclude .fseventsd | |
exclude .Spotlight-V100 | |
exclude .TemporaryItems | |
exclude .Trashes | |
exclude .AppleDB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment