Skip to content

Instantly share code, notes, and snippets.

@overtninja
overtninja / move_zfs_child_datasets.bash
Created February 6, 2022 03:41 — forked from dmp1ce/move_zfs_child_datasets.bash
Move all ZFS child datasets to a new parent dataset
#!/bin/bash
# Move all ZFS child datasets to a new parent dataset
# See post about problematic Docker datasets:
# https://daveparrish.net/posts/2020-11-10-Managing-ZFS-Snapshots-ignore-Docker-snapshots.html
if [ ! $# -eq 2 ]; then
echo "Please supply a source and destination ZFS dataset as the first and second parameter"
echo "Example: ./move_zfs_child_datasets.bash zpool/ROOT/default zpool/docker"
exit;
@overtninja
overtninja / enable-docker.sh
Created February 6, 2022 02:19 — forked from tprelog/enable-docker.sh
Enable Docker on TrueNAS SCALE (without kubernetes)
#!/usr/bin/env bash
#
# Enable Docker on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You can NOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker dataset in one of your zpools
@overtninja
overtninja / enable-docker.sh
Created January 18, 2022 06:17 — forked from tprelog/boot.sh
Enable Docker on TrueNAS SCALE (no Kubernetes)
#!/usr/bin/env bash
#
# Enable Docker on TrueNAS SCALE (no Kubernetes)
#
# This script is a hack! Use it at your own risk!!
# Using this script to enable Docker is NOT SUPPORTED by ix-systems!
# You can NOT use SCALE Apps while using this script!
#
# 1 Create a dedicated Docker dataset in one of your zpools