Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

PostgreSQL: Point in time recovery

1,975 views

Published on

Published in: Technology, Self Improvement
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD TH1S BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc EBOOK Here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

PostgreSQL: Point in time recovery

  1. 1. PITR: POINT IN TIME RECOVERY PITR: POINT IN TIME RECOVERY 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 1
  2. 2. HOT Backup PITR 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 2
  3. 3. HOT Backup Tecnica utilizzata quando il database deve essere  in esecuzione nel mentre che il backup viene  effettuato Attivare nel file postgresql.conf il supporto per il  WAL e per il PITR archive_mode = on Impostare il parametro archive_command archive_command = 'cp ­i %p /mnt/server/archivedir/5f  </dev/null' archive_command = 'copy % cmntserverarchivedir%f' %p è il path assoluto del WAL %f è un filename unico che sarà creato sul path specificato  sopra 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 3
  4. 4. PITR: POINT IN TIME RECOVERY PITR: rappresenta la possibiltà di far tornare un  cluster db in punto definito nel tempo, sia esso  presente che futuro E' disponibile in maniera stabile dalla versione 8.2x  in poi Questa tecnica utilizza un backup completo di un  cluster database e i WAL trovati nella directory  pg_xlog Deve essere configurato con restart del postmaster  prima del suo utilizzo attraverso il file  postgresql.conf 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 4
  5. 5. PITR: FASE 1 Impostare il parametro archive_command archive_command = 'cp ­i %p /mnt/server/archivedir/5f  </dev/null' archive_command = 'copy % cmntserverarchivedir%f' %p è il path assoluto del WAL %f è un filename unico che sarà creato sul path specificato  sopra 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 5
  6. 6. PITR: FASE 2 Select pg_start_backup('label'); Copia di tutto il file system della directory /data/base   e /data/global oppure esegui un pg_dumpall Copia della pg_xlog Select pg_stop_backup(); 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 6
  7. 7. PITR: FASE 3 ­ RESTORE Se attivo ferma il postmaster Cancella tutti i dati nella cartella /data/base  /data/global Restore dei dati fatti nel dump precedente,  copiando o usando il dump fatto con pg_dump_all Copia dei dati dal backup di pg_xlog Creazione del file restore.conf all'interno della  directory data Riavvio del server 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 7
  8. 8. PITR : restore.conf restore_command = 'cp /mnt/server/archivedir/%f %p' oppure in ambiente windows restore_command = 'copy c:mntserverarchivedir %f %p' restore_target_time = "2008­10­17 18:00" 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 8
  9. 9. PITR: POINT IN TIME RECOVERY HOT Backup PITR 27/11/08 /home/scotty/enrico/corso­web/finale/Architettura/pitr.odp page 9

×