cygwin install cron rsync and exim ,to execute scheduled command backup files to remote rsyncd server and notifies log by mail

You know to install  application on cygwin,we must to run cygwin-setup.exe , then selected these applications (tools) we want and reinstall cygwin .

now we launch cygwin console to settting cron exim and edit a script to backup files to remote machine by rysnc command.

cron-config

exim-config
cygwin setting cron_schedule and list it

edit backup script file:

vim backup_thunderbird_mails.sh

backup script of context like follow:

#!/bin/bash
rsync -arv --password-file=/home/Administrator/rsyncd.secrets /cygdrive/d/ThunderBirdMail/Mail autobackup@192.168.128.240::backup_jerry/Mail

rsync’s password-file been save on /home/Administrator/rsyncd.secrets .
And remember to change permission to 600 for this file. The password-file of context just only one line string that password of rsync’s user.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s