#!/bin/shLANG=EN_US #source S="hoge@hoge.com:/home/hoge/backup/now/xxx" #destination D="/home/hoge/backup/xxx" yesterday=`/bin/date -d '1 days ago' +%a` rsync -avz -e 'ssh -i /home/tadashi/.ssh/backupi' \ $S/$yesterday $D/$yesterday