Recent Posts (dump)
Backing Up and Restoring PostgreSQL Databases
- By Ercan S.
- 17/04/2025
- 0 comments
This guide outlines the steps to back up and restore PostgreSQL databases using command-line tools on Windows. Backing Up a Database To back up a PostgreSQL database, use the `pg_dump` utility: .\pg_dump.exe -U <username> -d <database_name> > <dump_path> Example: .\pg_dump.exe -U postgres -d testdb > C:\Users\Ercan\Desktop\dump.sql Restoring a Database To restore a PostgreSQL database from a backup, use the `psql` utility: .\psql.exe -U <username> -d <database_name> < <dump_path> Example: .\psql.exe -U postgres ..
Backing Up and Restoring MongoDB
- By Ercan S.
- 17/04/2025
- 0 comments
This guide outlines the steps to back up and restore MongoDB databases using the official MongoDB Database Tools. 1. Download MongoDB Database Tools Obtain the MongoDB Database Tools from the official website: https://www.mongodb.com/try/download/database-tools 2. Backing Up a Database Use the `mongodump` utility to create a backup of your database: .\mongodump.exe --db=<<db_name>> --out <<dump_path>> Replace `<<db_name>>` with the name of your database and `<<dump_path>>` with the desired output directory. 3. Restoring ..