Guest User

Untitled

a guest
Oct 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2. Database Backup:
  3. --------------------------------------------------------------------------------
  4. taskset -c 2,3,4,5,6,7 pg_dump -U postgres -Fc ameyodb -f ameyodb_22Oct2018 .dump
  5. taskset -c 2,3,4,5,6,7 pg_dump -i -vv -U postgres --clean ameyodb -F c -f ameyodb_22Oct2018_3.sql
  6. taskset -c 2,3,4,5,6,7 pg_dump -U -j 5 postgres ameyodb | gzip > ameyodb_22Oct2018_4.sql.gz
  7.  
  8. --------------------------------------------------------------------------------
  9. Database Restore:
  10. --------------------------------------------------------------------------------
  11. taskset -c 2-15 pg_restore -U postgres -d ameyodb -j 13 -v ameyodb_22Oct2018_2.dump
  12. taskset -c 2-15 pg_restore -i -e -vv -j 13 -U postgres -d ameyodb ameyodb_22Oct2018.dump
  13. --------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment