Mercurial > repos > other > usr-local-bin
view backup-website-images @ 34:fb4dd1974129
Ensure fixed ordering of values
Also ensures we don't get ACPI readings
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Feb 2021 15:57:09 +0000 |
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