mastodon-install-script/install.sh at master · nesosuke/mastodon-install-script
https://github.com/nesosuke/mastodon-install-script/blob/master/install.sh
#memo 2230 start
これでいけそうな気がする
nesosuke/mastodon-install-script:
nesosuke/mastodon-install-script@8310b23
https://github.com/nesosuke/mastodon-install-script/commit/8310b238378ea68e17317a8652c8d91b72cc1768#diff-3fbb47e318cd8802bd325e7da9aaabe8
ふぁぼるっくのバックアップ処理で、年毎にテーブルが分かれているので、ダンプ後、並列でS3へ送って、次のテーブルのダンプを取るのを過去に書いていた。
start_year=`date +%Y`
end_year=2008
for i in `seq ${start_year} -1 ${end_year}`
do
backup ${i}
RETVAL=$?
if [ $RETVAL != 0 ]; then
rm $PID_FILE
echo `date +"%Y/%m/%d %H:%M:%S"` 異常終了;
${PHP_BIN} ${FAVLOOK_CRON}/guide_msg.php "@osapon ふぁぼるっくの月次バックアップが転けました。ステージ${i}" > /dev/null
exit 1
fi
s3proc_cnt=`jobs | grep 実行中 | wc -l`
if [ $s3proc_cnt == 0 ]; then
backupSyncS3 'monthly'&
fi
done
wait
今やっとるのはこれ、
https://github.com/nesosuke/mastodon-install-script/blob/master/install.sh
waitコマンド後で調べてみるか