personal website: delete stale files
authorRalf Jung <post@ralfj.de>
Mon, 25 Nov 2024 17:05:10 +0000 (18:05 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 25 Nov 2024 17:05:44 +0000 (18:05 +0100)
personal/.htaccess
personal/upload.sh
research/upload.sh

index 82a932411d9573012418be812af9ce5201eedf7b..2c9718822caff99c5eca77f1e41ef39e9ea72919 100644 (file)
@@ -1,2 +1,3 @@
+Redirect /projects/dsl /projects/lilass
 RedirectMatch "^/cs/(index.html?)?$" "/research"
 RedirectMatch "^/cs/bachelor(.*)$" "/research/bachelor/bachelor$1"
index aac35c48ad2a1d20138516a14a270b297596d370..76dac8be4e23d1530d7e4ea8a39c1aba17b3b1b8 100755 (executable)
@@ -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/*"
index f12a8417b12d5a9df757393bdeb8d9845dc8af01..3acd9d56b1e3e8efd4ddbe87a677be1c2f050ee0 100755 (executable)
@@ -8,4 +8,4 @@ git add .
 git diff --cached
 git commit -m "site upload"
 
-rsync ./ ralfj.de:/srv/research.ralfj.de/docroot/ -aP --exclude .git --delete
+rsync ./ ralfj.de:/srv/research.ralfj.de/docroot/ -aP --delete --exclude .git