X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/9f35bfb604d637a634bc9109eb0626d6e3fe8921..3a5d12fe9799efa07088e976c80717212ca3be64:/personal/upload.sh diff --git a/personal/upload.sh b/personal/upload.sh index aac35c4..76dac8b 100755 --- a/personal/upload.sh +++ b/personal/upload.sh @@ -8,4 +8,8 @@ git add . git diff --cached git commit -m "site upload" -rsync ./ www.ralfj.de:/srv/www.ralfj.de/docroot/ -aP --exclude .git +# 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/*"