This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sample code, use at your own risk | |
# script to install zfs, nextcloud using snap and moving the data to the new volume with compression and deduplication enabled. | |
# Do your own research as to pros and cons of zfs dedupe and compression. | |
# Short advice is that compression works well unless you're mostly storing compressed file formats like media. | |
# install and configure zfs, assuming 2nd disk is where you want your data stored. | |
sudo apt install zfsutils-linux | |
sudo zpool create nextcloud /dev/sdb | |
sudo zfs create nextcloud/data | |
sudo zfs set compression=lzjb nextcloud/data |