Zum Inhalt der Seite gehen


Hello @Friendica Admins ,

what is your backup strategy for the friendica database?

  • What tools do you use?
  • How often do you backup the database?
  • How long do you save the backups?
  • What else?

teilten dies erneut

Als Antwort auf Matthias Moritz

@Matthias Moritz I use #borg backup and before that there is
mariabackup --backup --stream=xbstream --datadir=/var/lib/mysql | pigz -9 -p 6 >/var/mariabackup/mariabackup.gz
executed to backup the DB.

You could probably also use
mysqldump -Aqf --routines --single-transaction --skip-lock-tables --max_allowed_packet=1024M|pigz > /var/mariabackup/all_databases.sql.gz

#Borgbackup with the script from here:
borgbackup.readthedocs.io/en/s…

Keeping this:

    --keep-hourly   3                  \
    --keep-daily    3                  \
    --keep-weekly   4                  \
    --keep-monthly  5                  \
    --keep-yearly   2                  \

Friendica Admins hat dies geteilt.

Als Antwort auf utzer [Friendica]

@utzer [Friendica]
Sicherst Du absichtlich das komplette /var/lib/mysql und nicht nur das /var/lib/mysql/friendica?

Friendica Admins hat dies geteilt.

Als Antwort auf utzer [Friendica]

@utzer [Friendica] @Michael Vogel
Noch eine Frage wenn ich darf: Macht es Sinn, vor dem Backup den mariadb Dienst zu stoppen oder reicht es aus de Instanz in den Wartungsmodus zu setzen?

Friendica Admins hat dies geteilt.

Als Antwort auf Tuxi :Friendica: 🐧 ✅

@Tuxi :Friendica: 🐧 ✅ ich denke beides muss nicht unbedingt sein, aber ich mache das so, dass ich aktuell Friendica in den Wartungsmodus schalte, aber es dauert relativ lange mit dem Backup. Ich mache das aktuell so, wegen der MariaDB crashes neulich.
Dieser Beitrag wurde bearbeitet. (1 Jahr her)

Friendica Admins hat dies geteilt.

Als Antwort auf Matthias Moritz

So here the whole system is backed up.
A snapshot of the system is taken at a certain point in time, after which the backup is created. After the backup, the snapshot is deleted.
Afterwards, the backup is encrypted and transferred to an additional data centre.

The schedule looks like this:
every weekday,
4 weekly backups,
Six monthly backups
and one annual backup.
Every Backup is transfered to a VM host and boots up.
If the boot in a vm failes, another backup is taken and verified.

Dieser Beitrag wurde bearbeitet. (1 Jahr her)

Friendica Admins hat dies geteilt.

Als Antwort auf Raroun

@Raroun yes I see, for me backups are always important, but it is not even remotely my business.

Friendica Admins hat dies geteilt.

Unbekannter Ursprungsbeitrag

Raroun

Friendica Admins hat dies geteilt.