use rsync --preallocate for deployment

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

View file

@ -15,6 +15,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