From 43c780501092e59d7f2d034cfed94d7480806428 Mon Sep 17 00:00:00 2001 From: Branden Date: Tue, 10 Apr 2018 20:13:17 -0700 Subject: [PATCH] Adding notes about snapraid detecting moved files --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 3f2d3ca..2af5c9a 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,16 @@ This container is configured using two files `snapraid.conf` and `snapraid-runne It is based on phusion-baseimage with ssh removed, for shell access whilst the container is running do `docker exec -it snapraid /bin/bash`. +### Detecting move operations +You'll probably notice when snapraid runs it gives a warning like `WARNING! UUID is unsupported for disks` and it may not detect moved files. Instead it seems them as copied and removed. In order to detect the file moves you can run with the following additional paramters. + +``` +--privileged --mount type=bind,source=/dev/disk,target=/dev/disk +``` + +* `--privileged` will share all your devices (ie `/dev/sdb`, `/dev/sdb1`, etc) with your container. Alternatively, you could probably use something like `--device /dev/sdb:/dev/sdb --device /dev/sdb1:/dev/sdb1`, but you'd need to do it for each drive you have setup. +* `--mount type=bind,source=/dev/disk,target=/dev/disk` mounts the disk listing into the container, so snapraid can run something like `ls /dev/disk/by-uuid` to get a list of all the disks by UUID + ### User / Group Identifiers **TL;DR** - The `PGID` and `PUID` values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended).