diff options
author | Daniel Jones <daniel@danieljon.es> | 2018-04-26 01:12:55 -0400 |
---|---|---|
committer | Daniel Jones <daniel@danieljon.es> | 2018-04-26 01:12:55 -0400 |
commit | fdb7babca5abc100655d384c68e5229eb81ae7b9 (patch) | |
tree | 35a902f661670962daeed31176b2f1c0c4f99697 | |
parent | fb1e41ae4c8488f1e5df61d769c00a6033365a25 (diff) | |
download | website-fdb7babca5abc100655d384c68e5229eb81ae7b9.tar.gz website-fdb7babca5abc100655d384c68e5229eb81ae7b9.zip |
added sync script to copy media directories
-rwxr-xr-x | sync.sh | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -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/ |