Skip to content

Instantly share code, notes, and snippets.

@brokendish
Created August 11, 2012 12:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brokendish/3324091 to your computer and use it in GitHub Desktop.
Save brokendish/3324091 to your computer and use it in GitHub Desktop.
【cronの設定--第1日曜日にバックアップシェルを実行】
#1日〜7日までの日曜日(%w=0)の16時に実行:第1日曜日にバックアップシェルを実行
0 16 1-7 * * test $(date +\%w) -eq 0 && /hoge/hoge/tool/monthly_bkup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment