Wednesday, March 19, 2014

Ubuntu 12.04 - link /var/lib/postgresql to another partition's directory

- sudo service postgresql stop
- sudo cp -rf /var/lib/postgresql /anotherPartition/postgresql
- sudo chwon -R postgres:postgres /anotherPartition/postgresql
- sudo service postgresql start

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.