vi /backup/rsync.sh
!/bin/bash
remotedir=/home/backup/
basedir=/backup/weekly
host=127.0.0.1
id=dmtsai
底下为程序阶段!不需要修改喔!
rsync -av -e ssh $basedir ${id}@${host}:${remotedir}
vi /backup/rsync.sh
remotedir=/home/backup/
basedir=/backup/weekly
host=127.0.0.1
id=dmtsai
rsync -av -e ssh $basedir ${id}@${host}:${remotedir}