pgsql 定時 存儲

#!/bin/sh time=$(date '+%Y-%m-%d')sql cd /usr/pgsql-10/bin PGPASSWORD=******* ./pg_dumpall -U postgres  > /usr/pgdb/${time}.pgdb.outpost count=`ls /usr/pgdb/ | wc -w`date if [ ${count} -gt 3 ] thenim
相關文章
相關標籤/搜索