From fdb7babca5abc100655d384c68e5229eb81ae7b9 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Thu, 26 Apr 2018 01:12:55 -0400 Subject: added sync script to copy media directories --- sync.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 sync.sh 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/ -- cgit v1.2.3