pg_restore -d postgres -U postgres -C C:\Temp\sample_backup

 

 

 

备份命令:

用pg_dump命令:

pg_dump -U postgres -C -f C:\Temp\sample_backup sample

 

 

 

还原,用pg_restore命令:

 

pg_restore -d postgres -U postgres -C C:\Temp\sample_backup

 

refurl:http://blog.csdn.net/kamemo/article/details/6646610

你可能感兴趣的:(postgres)