Last active
August 22, 2019 14:44
-
-
Save lucassmacedo/d966f16d9ea46b2f2bdb8a5919a5083b to your computer and use it in GitHub Desktop.
Comandos Linux Importantes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deleta todos processos de um certo nome | |
kill $(ps aux | grep 'phpstorm' | awk '{print $2}') | |
# Backup and Restore Database TAR PGQSL | |
PGPASSWORD="" pg_dump -h localhost -U postgres -F t database_name > /bkp/postgres/postgres-`hostname`-producao.tar | |
PGPASSWORD="" pg_restore -U postgres -d database_name /bkp/postgres/postgres-`hostname`-producao.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment