全文検索:
- 24 バックアップシェル(backup.sh)
- home/backups/conf/host_name ## directory rsync /var/www/vhost/:vhost ## file rsync /var/spool/cron/root:cron_root ## mysqldump all mysql:all ## mysqldu... backup.sh -H root@hogehost -l hogehost -p day > /var/log/backup_day.log 2>&1 10 1 1 * * backup.sh -H root@hogehost -l hogehost -p month > /var/log/backup_month.log 2>&1 ## hosts に書いておくパターン 10
- 10 IPアドレス判定
- le> grep -e "[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+" /var/log/secure </code> こっちの方が正確 <code console> grep -e "[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}" /var/log/secure </code> {{tag>bash}}