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

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s