Fixed upload file, this time with rsync.

This commit is contained in:
Andrew Lalis 2023-07-15 01:21:03 -04:00
parent c7b8bbc37d
commit 5e9eafe19a
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
#!/usr/bin/env bash #!/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