Search
 
SCRIPT & CODE EXAMPLE
 

SQL

backup postgres database

pg_dump -h localhost -U postgres -W -d mydb > mydb.sql 
Comment

postgre db backup command line

sudo pg_dump -h <host> -u postgres <db_name> -Z 9 > <backup_file_name>.sql.gz
Comment

backup postgres

pg_dumpall -U postgres -h localhost -f pg12bak.sql

NB: you will be prompted to enter your password severally and to avoid that:
https://stackoverflow.com/questions/50404041/pg-dumpall-without-prompting-password
Comment

postgres backup of table

pg_dump --host localhost --port 5432 --username postgres --format plain --verbose --file "<abstract_file_path>" --table public.tablename dbname
Comment

PREVIOUS NEXT
Code Example
Sql :: how mysql store datetime 
Sql :: how to left join a sub query in postgresql 
Sql :: sql server download for windows 10 64 bit 
Sql :: install mssql on ubuntu 
Sql :: what is 1=2 in sql 
Sql :: Deleting data from tables 
Sql :: sql comment 
Sql :: mysql --version 
Sql :: oracle procedure teamplate 
Sql :: mysql update sum same table 
Sql :: python list from sql 
Sql :: join sql 
Sql :: update view sql 
Sql :: migrations.RunSQL 
Sql :: group_concat sql server 
Sql :: mysql procedure 
Sql :: sql limit results 
Sql :: sql Top 5 sutradara dengan filem terbanyak 
Sql :: mysql workbench reset performance reports 
Sql :: grant privileges mysql to database 1064 
Sql :: mysql and or 
Sql :: postgresql interview questions 
Sql :: configurer mysqlwampserver a distance 
Sql :: sql convert to linq online 
Sql :: sqlite explain plan 
Sql :: postgresql insert string 
Sql :: SELECT MAX(age) FROM Customers; 
Sql :: automated psql csv export script on windows 
Sql :: oracle executing sqlplus commands and waiting for completion 
Sql :: sql developer export connections 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =