Add more configs
This commit is contained in:
parent
58328a42d5
commit
03ab6ee918
5 changed files with 60 additions and 1 deletions
14
zfs.sh
Executable file
14
zfs.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
root_set=$(sudo zfs list -Ho name /)
|
||||
|
||||
# danger zone
|
||||
mv "$HOME" "$HOME-backup"
|
||||
sudo zfs create -p "$root_set$HOME"
|
||||
sudo zfs allow $(whoami) mount,create,rollback,snapshot "$root_set$HOME"
|
||||
rsync -aAX "$HOME-backup" "$HOME"
|
||||
|
||||
sudo zfs create -p "$root_set/srv/beszel"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue