use btrfs-send for data syncing, testing still in progress
[distro-setup] / install-btrfs-sync-tools
1 #!/bin/bash
2
3 # Running these files directly won't be good since we are
4 # unmounting the volume they live on.
5 # This never really get's run, since we normally only
6 # seed these files to other hosts using btrbk-run.
7
8
9 set -eE -o pipefail
10 trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR
11
12 [[ $EUID == 0 ]] || exec sudo -E "$BASH_SOURCE" "$@"
13
14 cd $(dirname $(readlink -f "${BASH_SOURCE}"))
15
16
17 echo install mount-latest-subvol check-subvol-stale /usr/local/bin
18 install mount-latest-subvol check-subvol-stale /usr/local/bin