Mercurial > repos > other > usr-local-bin
view backup-website-images @ 38:737061eac1d0 default tip
Skip more large videos and some permission issues
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 18 Aug 2021 20:40:17 +0100 |
parents | a6f490ec0c1c |
children |
line wrap: on
line source
#! /bin/bash dest=~/Websites/image-backup/ mkdir -p $dest paths="bdstrike/content/uploads/ 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