From ceb35181c601bcc4b1cc224c48fcfcd1a9f3c2d8 Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Mon, 21 Feb 2022 15:07:17 -0500 Subject: [PATCH] feat(Infini-SERVER): start backup drive setup script --- hosts/Infini-SERVER/readme.org | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/hosts/Infini-SERVER/readme.org b/hosts/Infini-SERVER/readme.org index bea7acc..3880165 100644 --- a/hosts/Infini-SERVER/readme.org +++ b/hosts/Infini-SERVER/readme.org @@ -210,3 +210,23 @@ sudo btrfs subvolume create /mnt/root/srv sudo btrfs subvolume create /mnt/root/srv/minecraft sudo btrfs subvolume create /mnt/root/srv/soft-serve #+END_SRC + +** Setup Backup Drive + +*** Partitioning + +#+NAME: backup_partitioning +#+BEGIN_SRC bash +echo "LOG: Partitioning $DISK for backup storage" +sudo parted $DISK -- mktable gpt +sudo parted $DISK -s -- mkpart primary btrfs 0% 100% +#+END_SRC + +*** Making Filesystems + +#+NAME: backup_filesystems +#+BEGIN_SRC bash +echo "LOG: Making backup filesystems" +echo "- Making btrfa filesystem on ${DISK}${PARTITION_PREFIX}1" +sudo mkfs.btrfs "${DISK}${PARTITION_PREFIX}1" --csum xxhash -L "backup" +#+END_SRC