aboutsummaryrefslogtreecommitdiff
path: root/home/bin/backup
blob: eb70d1d0b80bea6d5d7750eefe4a42d0f92e23a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

uuid=05b7770e-1f01-4b17-83de-ede0a04495a1
instance="$(systemd-escape $uuid)"

case "$1" in
    mount)
	sudo cryo "$uuid" mount
	;;
    umount)
	sudo cryo "$uuid" umount
	;;
    *)
	sudo systemctl start "cryo@$instance.service"
	;;
esac