Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # Find all .orig files, and delete them with confirmation
  2. find . -name "*.orig" && read -q "REPLY?Delete all?" && find . -name "*.orig" -delete && echo "\nDone."
  3.  
  4. # pg_restore with bandwidth control and progress bar
  5. `cat db.dump | pv -pera -s $(stat -c %s db.dump) -L 2000000 | pg_restore -d postgres://postgres:a@localhost/db_name --clean --no-owner --verbose -Fc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement