發表文章

目前顯示的是 12月, 2009的文章

rsync examples

rsync examples backup to a central backup server with 7 day incremental #!/bin/sh # This script does personal backups to a rsync backup server. You will end up # with a 7 day rotating incremental backup. The incrementals will go # into subdirectories named after the day of the week, and the current # full backup goes into a directory called "current" # tridge@linuxcare.com # directory to backup BDIR=/home/$USER # excludes file - this contains a wildcard pattern per line of files to exclude EXCLUDES=$HOME/cron/excludes # the name of the backup machine BSERVER=owl # your password on the backup server export RSYNC_PASSWORD=XXXXXX ######################################################################## BACKUPDIR=`date +%A` OPTS="--force --ignore-errors --delete-excluded --exclude-from=$EXCLUDES --delete --backup --backup-dir=/$BACKUPDIR -a" export PATH=$PATH:/bin:/usr/bin:/usr/local/bin # the following line clears the last weeks incremental directory [ -d $HOME/em

FreeBSD 下利用 ports 安裝 openwebmail

修改 apache 的 httpd.conf,更改 cgi-bin 的路徑 ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" 利用OpenWebMail修改SAMBA密碼 vi /var/www/cgi-bin/openwebmail/etc/auth_unix.conf change_smbpasswd yes 更改 openwebmail 資料檔路徑,如圖示。 ow_htmldir              /usr/local/www/apache22/data/openwebmail