Óò·þÎñÆ÷ÉÏÃæµÄÎļþÔ½À´Ô½¶à,Ô½À´Ô½´ó,ÎÞÂÛ¿ª¶à´óµÄ¿Õ¼ä,ͬÊÂÃÇ×ÜÊÇÄÜ°ÑËü×°Âú.
Ôõô½øÐа²È«µÄ±¸·Ý,Ò»Ö±ÔÚÀ§ÈÆ×ÅÎÒ,±È½ÏÁ˺ܳ¤Ê±¼ä,×ÜËãÊÇÈ·¶¨ÁËÒ»¸ö¹¤¾ß,ÄǾÍÊÇpdumpfs,pdumpfsʹÓÃrubyÓïÑÔдµÄ,rubyÊÇÀàËÆÓÚbythonµÄÒ»ÖÖÃæÏò¶ÔÏóµÄ½Å±¾ÓïÑÔ,Ò²ÊÇÒ»¸öÀúÊ·ÓƾõÄÓïÑÔÁË,
pdumpfs ¿ÉÒÔʵÏÖÿÌì±£´æÒ»¸öÎļþĿ¼µÄ¿ìÕÕ,ÓÃÓ²Á¬½ÓµÄ·½Ê½,ʵ¼ÊÉÏÓúÜÉÙµÄÓ²Å̿ռ䱣´æÁËÿÌìµÄÎļþĿ¼״̬,ÓÃÄê/ÔÂ/ÈÕ×öĿ¼Ãû,ÒªÏë»Ö¸´Ä³ÌìµÄÎļþĿ¼,Ö»Òª½øÈëÏàÓ¦µÄĿ¼¾Í¿ÉÒÔÁË.Õâ¶ÔÓÚÎļþ±¸·ÝÊÇÒ»ÖÖ½üºõÍêÃÀµÄ·½°¸.
http://anheng.com.cn/news/html/net_admin_blog/471.html
debianÏ°²×°ºÜ¼òµ¥:
apt-get install pdumpfs
http://anheng.com.cn/news/html/net_admin_blog/471.html
¼ÙÉèÒª°Ñ/homeϵÄÎļþ±¸·Ýµ½/home1
±¸·ÝµÄÃüÁî¾ÍÊÇ:
pdumpfs /home /home1
http://anheng.com.cn/news/html/net_admin_blog/471.html
ÿ×Ô¶¯ÔËÐÐ,ÔÚ/etc/crontabÔö¼ÓÒ»ÐÐ:
2 12,18 * * * root pdumpfs /home /home1
ÕâÑù£¬Ã¿ÌìµÄ12:02ºÍ18:02¾Í¿ÉÒÔ×Ô¶¯ÔËÐб¸·Ý£¬
http://anheng.com.cn/news/html/net_admin_blog/471.html
¸ß¼¶Ó÷¨:
ÏÞÖÆÎļþ´óС£¬³¬¹ý£³£°MµÄ²»×ö±¸·Ý:
pdumpfs --exclude-by-size 30M /home /home1
Åųý *.CAB,*.cab,*.exe:
pdumpfs --exclude-by-glob "*.CAB" --exclude-by-glob "*.cab" --exclude-by-glob "*.exe" --exclude-by-size 30M /home /home1
http://anheng.com.cn/news/html/net_admin_blog/471.html
×Ô¶¯ÔËÐÐ,±¸·Ý²¢ÇҰѱ¸·ÝÇé¿ö·¢mail¸ø¹ÜÀíÔ±:
2 19 * * * root pdumpfs --exclude-by-glob "*.CAB" --exclude-by-glob "*.cab" --exclude-by-glob "*.exe" --exclude-by-glob "*.EXE" --exclude-by-glob "*.zip" --exclude-by-glob "*.ZIP" --exclude-by-size 30M -q -l /tmp/bak.log /home /home1;sendmail shiwei@cfido.com http://anheng.com.cn/news/html/net_admin_blog/471.html
ÌáÈ¡±¸·ÝÊý¾Ý:
±ÈÈçÌáÈ¡2004-11-30µÄÎļþ,Ö»Òª½øÈë/home1/2004/11/30/home£¬¿ÉÒÔ¿´µ½Ò»¸ö¸ú/homeÍêÈ«Ò»ÑùµÄĿ¼½á¹¹¡£
feidecheng ÓÚ 2008-04-28 14:39:24·¢±í:
:0wpoi2 ÊܽÌÁË