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

Hallo,

nun geht es um mein Fullbackup. Da habe ich eine Frage zu:

Wenn ich ein Script für die Backup-Software erstellen möchte welches folgender maßen aussehen soll:

flush logs;

mysqldump --all-databases > all_databases.sql

Stellt sich jetzt die Frage, wenn zum gegenwärtigem Zeitpunkt sich USER auf dem Server befinden, lockt die Dump-Funktion die einzelnen Tabellen und die USER haben keinen Schreibzugriff mehr? Wenn nicht können ja die USER weiterhin Einträge tätigen und somit wäre der Dump nicht wirklich ein Full-Backup, da ja Einträge während dem Erstellen des Dumps getätigt werden können.

Sollte man falls der "lock tables" Befehl nicht beim mysqldump --all-databases > all_databases.sql benutzt wird, lieber manuell setzen? So das es im Grunde dann so aussehen sollte?

lock tables;

flush logs;

mysqldump --all-databases > all_databases.sql

unlock tables;

Gibt es eine andere möglichkeit die Datenbanken 1:1 zu kopieren?

Für eine schnelle Hilfe oder Antworten die mich mal wieder auf den richtigen Weg schubsen wäre ich sehr dankbar :)

gruß

Pummel

Hallo,

schau dir mal die Parameter an.

-x, --lock-all-tables

Locks all tables across all databases. This is achieved

by taking a global read lock for the duration of the

whole dump. Automatically turns --single-transaction and

--lock-tables off.

-l, --lock-tables Lock all tables for read.

Frank

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.