summaryrefslogtreecommitdiff
path: root/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sync.sh')
-rwxr-xr-xsync.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/sync.sh b/sync.sh
new file mode 100755
index 0000000..15083ef
--- /dev/null
+++ b/sync.sh
@@ -0,0 +1,25 @@
+# sync all the media directories, this only has to be run when new media is added
+
+# root media directory
+rsync -r /var/www/media /var/www/kawaii/
+rsync -r /var/www/media /var/www/dark/
+rsync -r /var/www/media /var/www/light/
+rsync -r /var/www/media /var/www/nocss/
+
+# blog media directory
+rsync -r /var/www/blog/media /var/www/kawaii/blog/
+rsync -r /var/www/blog/media /var/www/dark/blog/
+rsync -r /var/www/blog/media /var/www/light/blog/
+rsync -r /var/www/blog/media /var/www/nocss/blog/
+
+# waifu media directory
+rsync -r /var/www/waifus/media /var/www/kawaii/waifus/
+rsync -r /var/www/waifus/media /var/www/dark/waifus/
+rsync -r /var/www/waifus/media /var/www/light/waifus/
+rsync -r /var/www/waifus/media /var/www/nocss/waifus/
+
+# opinions media directory
+rsync -r /var/www/opinions/media /var/www/kawaii/opinions/
+rsync -r /var/www/opinions/media /var/www/dark/opinions/
+rsync -r /var/www/opinions/media /var/www/light/opinions/
+rsync -r /var/www/opinions/media /var/www/nocss/opinions/