use rsync --preallocate for deployment

This commit is contained in:
Daniel Micay 2025-06-01 10:01:38 -04:00
parent 05bc9199b3
commit 7836022d46

View file

@ -1,6 +1,7 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
shopt -s expand_aliases
. hosts.sh
@ -15,6 +16,8 @@ readonly remote=root@$ip
readonly drive=$(ssh $remote '[[ -e /dev/sda ]] && echo sda || echo vda')
alias rsync='rsync --preallocate'
# check for Arch ISO
ssh $remote '[[ $(grep IMAGE_ID /etc/os-release) = "IMAGE_ID=archlinux" ]]' || exit 5
ssh $remote '[[ $(grep IMAGE_VERSION /etc/os-release) = "IMAGE_VERSION=2025.05.01" ]]' || exit 5