Mercurial > repos > other > usr-local-bin
view backup-website-images @ 2:30145875d811
Update when we pull website code down
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 09 Nov 2014 09:27:00 +0000 |
parents | e85e3470a41e |
children | a3c7051ceb21 |
line wrap: on
line source
#! /bin/bash dest=~/Websites/image-backup/ mkdir -p $dest paths="glittergoth/image/data glittergoth/image/*.* glittergoth/AlchemyCatalogue/*.* glittergoth/AlchemyCatalogue/Thumbs/*.* skins/images" for path in $paths; do dest_path=${dest}${path%/*} mkdir -p $dest_path rsync -ravz -e "ssh -i /home/ibboard/.ssh/cron" vps:/srv/sites/$path $dest_path >> /home/ibboard/cron.log 2>&1 done