This commit is contained in:
May 2024-07-03 00:14:48 -07:00
parent 75d3735f1c
commit 1da264a3f2
Signed by: split
GPG key ID: C325C61F0BF517C0

View file

@ -9,7 +9,7 @@ tar -aczf "/tmp/$FILENAME" -C /volumes .
# ship to host
ssh -i id $NAME@$HOST mkdir -p /home/$NAME/$DIRNAME/
rsync -r -e "ssh -i /id" "/tmp/$FILENAME" $NAME@$HOST:/home/$NAME/$DIRNAME/$FILENAME
rsync -r -e "ssh -i /id" "/tmp/$FILENAME" $NAME@$HOST:/home/$NAME/$DIRNAME/
# delete backup
rm -rf "/tmp/$FILENAME"