Areca + Opensftp 在 Openwrt router 做Backup Server

Areca: http://sourceforge.net/projects/areca/?source=typ_redirect

Openwrt + Setup Openssh-sftp: http://jeffkwan.blogspot.hk/2014/12/openwrt.html

Areca 是一個功能頗全面的backup software ,不過要自訂很多選項,而且要建立batch file 同用schedule task。比較麻煩。不過好處是可以有不同類型的backup方式。又支援sftp.

Tutorial: http://www.areca-backup.org/tutorial1.php

不過發現原來要openwrt 比 areca sftp account access 要做多少少野,因為我個HD 是用ntfs

http://wiki.openwrt.org/doc/howto/writable_ntfs

寫左個Script 用來mount 個usb drive,要在root crontab 內加

root@OpenWrt:~# crontab -e

@reboot /path/to/mount.sh

root@OpenWrt:~# vi /path/to/mount.sh

#!/bin/bash

DEVICE=`fdisk -l | grep NTFS | cut -c6-9`

#check if NTFS drive available
if [[ $DEVICE != "" ]]; then

#check if it is mounted or not
if [[ "`mount | grep $DEVICE`" = "" ]]; then
/usr/bin/ntfs-3g /dev/$DEVICE /mnt/sdb -o rw,sync
else
echo NTFS Device: $DEVICE already mount
fi
else
echo NO NTFS Device found!!
fi

Comments

Popular Posts