view backup-website-images @ 20:31a626c71eab

Change load type colours to be easier to read
author IBBoard <dev@ibboard.co.uk>
date Mon, 01 Oct 2018 21:09:49 +0100
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