发布时间:2013-02-02 10:51:58
#!/bin/sh#backup files by dateDATE=`/bin/date +%Y%m%d`/bin/tar -cfz /backup/$1.$DATE.tar.gz $1 > /dev/null 2>> /backup/$1.bak.log/bin/gzip /backup/$1.$DATE.tarif [ $? -eq 0 ]then echo "$1 $DATE backup successfuly" >> /backup/$1.bak.logelse echo "ERROR:failure $1 $DATE .........【阅读全文】
发布时间:2013-02-02 10:21:02
#!/bin/sh#auto mail for system info/bin/date +%F >> /tmp/sysinfoecho "disk info:" >> /tmp/sysinfo/bin/df -h >> /tmp/sysinfoecho "online users:" >> /tmp/sysinfo/usr/bin/who | /bin/grep -v root >> /tmp/sysinfoecho "memory info:" >> /tmp/sysinfo/usr/free -m >> /tmp/sysinfoecho >> /tmp/sysinf.........【阅读全文】