postgresql【一】postgresql定時任務備份數據庫

  curDate=`date +"%Y-%m-%d-%H-%M-%S"` echo $curDate pg_dump "host=127.0.0.1 hostaddr=127.0.0.1 port=5432 user=postgres password=db_password dbname=db_name" > $curDate.sql zip $curDate.zip $curDate.sql
相關文章
相關標籤/搜索