summaryrefslogtreecommitdiffstats
path: root/local/bin/updatewebsite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'local/bin/updatewebsite.sh')
-rwxr-xr-xlocal/bin/updatewebsite.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/local/bin/updatewebsite.sh b/local/bin/updatewebsite.sh
new file mode 100755
index 0000000..71c99b2
--- /dev/null
+++ b/local/bin/updatewebsite.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# This script syncs local files to my VPS
+
+# Thank you: https://unix.stackexchange.com/a/2503/347754
+options="-uvrPs --delete-after --copy-links"
+targetdir="tokumori.xyz:/var/www"
+
+rsync $options /home/mitsuo/mahcode/www/tokumori.xyz $targetdir