X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/9f35bfb604d637a634bc9109eb0626d6e3fe8921..09a57fbd0d9a22cda06212810a5b12f017619955:/personal/upload.sh?ds=sidebyside 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/*"