Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
## 备份计划任务
##
## 每天凌晨1:30一次全量备份
## 每天间隔1小时一次增量备份
## 30 1 * * * backup.sh full
## 00 * * * * backup.sh inc
##
## 恢复数据步骤:
@libotony
libotony / ps-grep-kill.sh
Created April 26, 2017 04:35 — forked from itomg/ps-grep-kill.sh
ps grep awk xargs kill
ps aux|grep cron-14|awk '{print $2}'|xargs echo
ps aux|grep cron-14|awk '{print $2}'|xargs kill
ps aux|grep cron-14|awk '{print $2}'|xargs kill -9