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
相关文章
相关标签/搜索