From 5e9eafe19af4ec3b6dd2e48297d6935dfa2cc3e2 Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Sat, 15 Jul 2023 01:21:03 -0400 Subject: [PATCH] Fixed upload file, this time with rsync. --- upload.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upload.sh b/upload.sh index 0c06b5b..82452bb 100755 --- a/upload.sh +++ b/upload.sh @@ -1,3 +1,9 @@ #!/usr/bin/env bash -scp -r * root@andrewlalis.com:/var/www/andrewlalis.com/html +# Helper script that copies files to the server. +# You need to have authenticated access to the server via SSH to use this. + +rsync -rav -e ssh \ +--exclude .git/ --exclude *.sh --exclude README.md \ +./ \ +root@andrewlalis.com:/var/www/andrewlalis.com/html