X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/fac47c7e7858bb53393bb1bcbe30e5b64509d250..59bf25a0c1732f6a1bea9e5777bf9e7d03b8bbb5:/personal/upload.sh?ds=inline 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/*"