2012年12月19日 星期三

網韻無障礙網頁 新增自動備份排程

1.到網韻管理界面下 - > 登入後
2.系統管理 - 排程備份
3.新增 -> 選擇日期 -> 選擇儲存天數 -> 選擇資料夾


2012年11月28日 星期三

windows server2008 以 rsync 備份重要檔案到 NAS上

1.下載 cwrsync 安裝到server2008
2.安裝後 cwrsync 會把程式裝到 program files(x86)中,把整個目錄copy到program files下
3.cwrsync 目錄下有 bin , doc 目錄, rsync.exe 在 bin 下, 而程式預設路徑為 program files/cwrsync/
在 cwrsync 下有一個檔 cwrsync.cmd , 用記事本打開,可以看到裡面有很多設定檔,可以參考它的參數怎麼寫。
4.到Nas上新增一個共用資料夾wwwbackup,權限設給rsync (rsync 使用者)
5.以 Putty 連線到NAS上,到 /etc下設定 rsyncd.conf
6.在 server2008 上 c:\program files\cwrsync\bin\ 下建立一個  backup.bat 檔
修改上面的 password
cwrsync 預設的路徑要寫成  /cygdrive/    後面接的是要備份的目錄
/cygdrive/d/cyberbackup 表示要把 d:\cyberbackup 目錄備份到NAS上
rsync 的密碼檔原本應該是寫在另一個檔案上 , 並且擺在 cwrsync/下,

要寫成 rsync.exe -avr --delete --password-file=rsyncd.secrets /cygdrive/d/cyberbackup user@IP::wwwbackup

但是在執行這個backup.bat 時,一直無法開啟這個密碼檔,會一直要手動輸入password,
後來改成下圖,直接把密碼設定在backup.bat中

7.直接執行backup.bat 就可以開始執行備份了
8.把這個檔加入工作排程定實執行
到server2008 上 控制台 -> 系統管理工具->工作排程器
新增基本工作,設定在每天半夜兩點執行。

ps-
在設定server2008 R2 的工作排程時,一直遇到問題,最後試出來了,在建立工作時
選擇不論使用者登入與否均執行,並勾選以最高權限執行,選擇以windows server2003 windows xp 或winodws2000
編輯動作部分
啟動程式選擇要執行的 .bat檔,重點在開始位置必須指定在這個.bat檔所在的路徑這樣才可以讓電腦找到它來執行

9.備份公告附件的檔案
預設放在 d:/Inetpub/NetRhythm/siteserver/mediafile/資料夾中
所以在NAS中新增一個共用資料夾 wwwmediafile,依照上述方法修改原來的backup.bat檔案
把這個資料夾也做rsync備份。

2012年10月16日 星期二

Excel - 設定格式化條件判斷條件後設定儲存格格式

1.框選所要判斷的區域 A1-G50
2.點選常用 -> 設定格式化條件->新增規則


 3.設定判斷式 > , < , = 最後判斷數值要輸入  =60
 4.點選格式 -> 設定該儲存格符合條件時的格式,可設定字型顏色,或是儲存格填滿顏色

2012年10月15日 星期一

2012年7月24日 星期二

phantosys 電腦教室管理系統伺服器pim檔複製

phantosys 系統伺服器中

E:\program files\phantosys\L480.pim檔

可以把這個檔複製到其他伺服器中,這樣可以把原本在伺服器中建立的使用者節點一併複製到新的伺服器中

要將原本伺服器中的pim檔複製出來要先把使用者連線都停掉,伺服器的phantosys 系統服

務停掉

到我的電腦服務中 -> 找到phantosys server service停掉,然後再複製pim檔。

2012年6月17日 星期日

刷新網頁的方法

在網頁原始碼中加入這個碼

<meta http-equiv=”refresh” content=”2”> 加了這個可以讓電腦自己灌瀏覽數

2012年4月26日 星期四

NAS 網路芳鄰線上文件編輯

利用NAS 提供的網路芳鄰功能,開設各處室帳號

新增各處室共用資料夾,各處室擁有個資料夾權限,會計擁有所有資料夾權限

各處室利用首頁連結連線網路芳鄰,直接編輯相關excel 或是word檔

或是直接在檔案總管上輸入 file://XX.XX.XX.XX 再輸入帳密即可連線

2012年4月23日 星期一

Synology DS1512+ 啟動網路備份rsync

synology DS1512+ 的 rsync 設定檔在 /etc/rsync.conf

裡面設定
secrets file = /etc/rsyncd.secrets

用putty 透過ssh 連線

#vi rsync.conf 修改其內容
設定中預設module 是 [NetBackup]

NetBackup 資料夾在啟動網路備份後會自動出現
預設的路徑為 /var/services/NetBackup

如果要開設其他備份資料夾可以在共用資料夾中新增

新增的資料夾預設在 /volume1/下面


想要由freebsd 伺服器連線做backup 要安裝rsync套件,也要在/etc/下新增一個 rsyncd.secrets密碼檔
由其他伺服器freebsd 中安裝 rsync套件
/usr/ports/net/rsync
make install clean
透過
# /usr/local/bin/rsync -avrHS --delete --password-file=/etc/rsyncd.secrets  /要備份的資料夾 user@163.XX.XX.XX::NetBackup

可以使用預設的 NetBackup 的 module 也可以自己設定其他module



新增一個執行檔 backup.sh
#chmod +x backup.sh

將上面的內容填入
在crontab -e
中設定執行時間



也可以在freebsd  /etc中設定密碼檔  rsyncd.secrets檔
# ee rsyncd.secrets
輸入密碼




2012年4月8日 星期日

asus TS-300-E5 安裝 ESXi5.0

華碩主機 TS-300-E5 ,ram 4G, 四顆250G sata硬碟, 原本的LSI raid卡,ESXi並不支援,所以只能4顆硬碟分別用,沒辦法跑raid 5

把esxi裝好,就當成虛擬備援機,如果acer 那台ESXi 出問題,這台還可以檔一下

2012年4月7日 星期六

一些Freebsd 的 port用法 -portmaster , portaudit


Portmaster makes life easy when upgrading most of the packages even if there are other packages depend on it, for example if you have Apache Server and you want to upgrade eXpat you have to uninstall eXpat and install the new version, doing this will break the Apache installation, Portmaster can be used to do this operation safely without breaking any links ..etc.
To install Portmaster do the following:
cd /usr/ports/ports-mgmt/portmaster
make install clean
rehash
Portaudit is a nice application which will check the vulnerability database when building ports to ensure that there is no known security issues with what you are installing, if there is a known issue if wont continue and will reference you to the vulnerability.
To install it do the following:
cd /usr/ports/ports-mgmt/portaudit
make install clean
rehash
If you want to install a program even if it has a known vulnerability you can do that using the following command:
make -D DISABLE_VULNERABILITIES install clean