Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Huhu!

Ich habe ein OGo-System aufgesetzt und es mit einer Sicherung ausgestattet, dass per Job täglich ein Dump der DB gemacht wird. Das ist schön und gut, aber bringt mir gar nichts, wenn ich die Dumps nicht zurückspiele. Also sollte ich auch eine Restore-Routine haben. Ich bin noch neu in Sachen Postgresql, von daher musste ich erst einmal schauen, wie ich einen Dump ziehen kann. Das geht mit pg_dump und das sogar noch ziemlich einfach.

Ich mache mit bspw "pg_dump ogo > dump.dmp" einen Dump der bestehenden DB. Das Pendant dazu ist pg_restore. Laut Man-Pages stellt pg_restore einen Datenbestand wieder her. Dies auch direkt wieder in eine Datenbank und es benötigt dafür gültige pg_dump-Dumps.

"Mensch super" dachte ich mir. Ich dumpe mit pg_dump, dann ist das ja ein Kinderspiel....dachte ich.

Komischerweise sagt mir aber pg_restore immer, dass meine Dumps keine gültigen Archive sind. (Fehlermeldung: pg_restore: [Archivierer] Eingabedatei scheint kein gültiges Archiv zu sein)

Was mach ich falsch? Muss ich bei pg_restore noch einen Parameter mitgeben? Habe ich beim Dump schon was falsch gemacht?

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.