postgresql - how to backup and restore database

Sdílet
Vložit
  • čas přidán 30. 06. 2024
  • postgres: how to backup and restore postgresql database using command line/terminal/shell
    my setup is postgresql 9.2, CentOS 7
  • Věda a technologie

Komentáře • 34

  • @TheThird555
    @TheThird555 Před 3 lety +6

    It's a really good video. On point and fast... Thank you!

  • @GulshanKumar-zp7se
    @GulshanKumar-zp7se Před rokem +2

    On point and fast... Thank you!

  • @user-lh2uh7jh5r
    @user-lh2uh7jh5r Před 6 měsíci

    Thank you so much! This saved me alot of time, and it was straight to the point. Really glad i found this video. I will recomend it to many others!

  • @jorgeadalbertorodriguezgar8745

    Thanks a lot man. You Really helped me with this video. Keep rocking.

  • @calebmbugua745
    @calebmbugua745 Před 3 lety

    Thank you very Much..This was of great help

  • @kittyyyyyyyy
    @kittyyyyyyyy Před 9 měsíci

    thank you! this helped me migrate my matrix database to a new host!

  • @jazzycoder
    @jazzycoder Před měsícem

    Magnificent, thank you!

  • @sususu9
    @sususu9 Před 2 lety +1

    helped me so much, thanks for the video

  • @pythonofsky4545
    @pythonofsky4545 Před 2 lety +2

    Чува-ак! Спасибо тебе, большое!

  • @jaydeeptechnism3520
    @jaydeeptechnism3520 Před rokem

    thanks you save us a huge trouble. THNKS

  • @vitalysementsov3157
    @vitalysementsov3157 Před 2 lety

    Thank you. It's work!

  • @saiavinashduddupudi8975

    Thanks a ton!

  • @jayedhossainjibon2900

    Many Many thanks ❤

  • @programadordelassombras
    @programadordelassombras Před 9 měsíci

    Why did you use the file extension .dump for your backup file instead of using .bak or .sql?
    the .bak extension works for me, but no the .sql extension. I have not yet tried using the .dump. What's the difference?

  • @bariss1
    @bariss1 Před 4 lety

    Thank you

  • @eddwinnas
    @eddwinnas Před 4 lety

    TY a no bs approach

  • @andreiskorobogatov6541

    Очень помог, спасибо

  • @anujkumar-pz4ji
    @anujkumar-pz4ji Před rokem

    Thanks 🙏

  • @gudjihn
    @gudjihn Před rokem

    Подскажи плиз какой параметр прописать для записи лога файла при восстановлении базы на удаленный сервер? Использую CMD

  • @undercrackers56
    @undercrackers56 Před 3 lety +1

    Assuming that you cannot take the database offline, how do you ensure that the backup is atomic (all transactions complete)?

    • @TheThird555
      @TheThird555 Před 3 lety

      www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-postgresql-databases-with-barman-on-centos-7
      I might be wrong, but it seems this article partially answers your question. Physical back up->write ahead log files... But I believe even big companies announce maintenance and they stop servers to back up databases and/or fix problems with the servers... So I think this situation when you cannot stop servers is very unlikely?

  • @blanky_nap
    @blanky_nap Před rokem

    How can i handle the password if i need to automate db migration for example with github actions? Some ideas?

  • @AmolGautam
    @AmolGautam Před 9 měsíci

    thanks

  • @shmeklz
    @shmeklz Před 2 lety

    А как их вообще запускать с консоли? Не смотря на то, что у меня установлен потсгрес, пишет, что psql, pg_dump не опознано

  • @Aditya-ANR
    @Aditya-ANR Před rokem

    Hi Dear,
    Please assist us obtain step-by-step instructions for migrating the Avantra from AWS to GCP.
    Source - On AWS:
    Avantra is running with PostgreSql - onpremise
    Target- On GCP:
    Avantra is running with PostgreSQL as SaaS.
    We wish to move it from AWS to GCP at this time. Please provide us with specific steps.

  • @HouariDALIYOUCEF
    @HouariDALIYOUCEF Před rokem

    I would stop at the first error shown like in your case ^^

  • @adammulla9181
    @adammulla9181 Před 4 lety

    How to take backup in directory format?

    • @DeShark88
      @DeShark88 Před 2 lety

      RTFM: "pg_dump --help"
      -F, --format=c|d|t|p output file format (custom, directory, tar,
      plain text (default))

  • @mehmetsayn573
    @mehmetsayn573 Před 2 měsíci

    these two commands also for docker db
    docker exec -it pg pg_dump --clean --username=test --dbname=test > dump.sql
    cat dump.sql | docker exec -i pg psql --username=test --dbname=test

  • @sekhar1473
    @sekhar1473 Před rokem

    If I want 3 months backup

  • @vitalysementsov3157
    @vitalysementsov3157 Před 2 lety +1

    так я не понял, почему русский акцент, где индусы?

  • @user-do4nq3fr6t
    @user-do4nq3fr6t Před 2 lety

    я спецом поставил плагин чтобы по переводу с англ, сперва нарвался на индуса =) а теперь на русско-говорящего вроде, мой плагин не справляется =)

  • @killjaqular
    @killjaqular Před 10 měsíci

    small d