Webサーバとしてのセットアップは殆ど出来たので、 某所にあるコンテンツをコピーする
root@xhl:~# apt-get install rsync Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: rsync 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 356 kB of archives. After this operation, 610 kB of additional disk space will be used. Get:1 http://ftp.jp.debian.org/debian/ wheezy/main rsync armel 3.0.9-4 [356 kB] Fetched 356 kB in 0s (1034 kB/s) Selecting previously unselected package rsync. (Reading database ... 15815 files and directories currently installed.) Unpacking rsync (from .../rsync_3.0.9-4_armel.deb) ... Processing triggers for man-db ... Setting up rsync (3.0.9-4) ... update-rc.d: using dependency based boot sequencing !root@xhl:~#
root@xhl:~# vi /usr/local/sbin/htmlcopy.sh : : : root@xhl:~# cat !$ cat /usr/local/sbin/htmlcopy.sh rsync -rtuvpogtlH rsync://192.168.1.4/httpd/html /home/httpd rsync -rtuvpogtlH rsync://192.168.1.4/httpd/cgi-bin /home/httpd root@xhl:~#
root@xhl:~# sh /usr/local/sbin/htmlcopy.sh & [1] 5629 root@xhl:~# receiving incremental file list html/ html/.htaccess : :スクリプトは、バックグラウンドで動作させておいて、寝る
|
← apache のインストール |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ グループの追加 |
Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市