X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/f685642466ee2cd5fb58298ca12b153b5738507a..09a57fbd0d9a22cda06212810a5b12f017619955:/personal/upload.sh diff --git a/personal/upload.sh b/personal/upload.sh index 6733051..76dac8b 100755 --- a/personal/upload.sh +++ b/personal/upload.sh @@ -3,4 +3,13 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP + +git add . +git diff --cached +git commit -m "site upload" + +# To include `projects/rust-101/index.html` while excluding the rest of that folder, we have to +# write the exclusion as ".../*", or else rsync would not even descend into that directory. +rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP --delete \ + --include projects/rust-101/index.html \ + --exclude .git --exclude cs --exclude upload --exclude "projects/rust-101/*"