X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/d3c771bb7374a6611cbd8e564f4e7bd4ea740660..bd3912cd2071ac42b61a7b4f5cad3a927bd24b49:/personal/upload.sh?ds=sidebyside diff --git a/personal/upload.sh b/personal/upload.sh index 88e6126..76dac8b 100755 --- a/personal/upload.sh +++ b/personal/upload.sh @@ -3,6 +3,13 @@ cd "$(dirname "$0")" jekyll build cd _site -rsync ./ ralfj.de:srv/www.ralfj.de/docroot/ -aP \ - --exclude=cs/research.html -scp cs/research.html mpi-contact:public_html/index.html + +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/*"