changeset 9:a3c7051ceb21

Fix paths so rsync of images works Was getting "file not found" on /srv/sites//srv/sites/… Also fixed permissions of rrsync on server
author IBBoard <dev@ibboard.co.uk>
date Wed, 31 Aug 2016 17:19:49 +0100
parents 97325fd582d8
children 4158847b0f18
files backup-website-images
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/backup-website-images	Sat Aug 08 21:05:30 2015 +0100
+++ b/backup-website-images	Wed Aug 31 17:19:49 2016 +0100
@@ -12,7 +12,5 @@
 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
+	rsync -ravz -e "ssh -i /home/ibboard/.ssh/cron" vps:$path $dest_path >> /home/ibboard/cron.log 2>&1
 done
-
-