Mercurial > repos > other > usr-local-bin
view backup-website-images @ 14:92874671d6e1
Add and exclude more directories and files to focus it/limit file size
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 19 Mar 2018 19:32:37 +0000 |
parents | a3c7051ceb21 |
children | a6f490ec0c1c |
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:$path $dest_path >> /home/ibboard/cron.log 2>&1 done