Groot

From wikinotes
Revision as of 06:25, 29 December 2021 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Groot is my fileserver.
music, games, movies, backups, VMs etc.
It is named after an ent-like character from Guardians of the Galaxy movies/comics that grows branches at-will.

Software
samba shares files
zfs the filesystem
encfs encrypts files over shares
pf firewall (freebsd)

Backups

sudo -i

# ===============
# create snapshot
# ===============
sudo zfs snapshot -r zroot/media@2020-03-08_backup
sudo mount -t zfs zroot/media@2020-03-08_backup /mnt/snapshot

# ==========
# mount disk
# ===========
sudo mount /dev/da0p1 /mnt/usb

# =============================
# clone/start multivolumebackup
# =============================
cd ~
git clone https://github.com/willjp/multivolumecopy
cd multivolumecopy
python -m multivolumecopy /mnt/snapshot -o /mnt/usb

# =======================
# unmount/delete snapshot
# =======================
sudo umount /mnt/snapshot
sudo zfs destroy -r zroot/media@2020-03-08_backup