Skip to content

Add backup script and configuration for Gallien (MyKDE)

Nicolás Alvarez requested to merge work/gallien-backup into master

Add backup script and configuration for Gallien (MyKDE)

Backup includes:

  • The usual configuration (/etc, crontabs, package lists)
  • MySQL database dump via borg
  • /srv via borg (notably includes user avatars)

Notes:

  • The database dump is 1.5MB uncompressed, so I guess using Borg for it isn't really necessary for storage-saving reasons. However, with the usual weekday-numbered backups, we'd only keep 7 daily backups, while with Borg we can keep "7 daily, 4 weekly, 6 monthly".
  • The script is backing up all of /srv. Should I backup only /srv/www/my.kde.org/media, which is where avatars and badges are stored? I think the rest of /srv is MyKDE source code (already in my-kde-org.git), configuration (already in Ansible), and the virtualenv (dependencies from PyPI, 280MB uncompressed); but perhaps I'm missing something else?
Edited by Nicolás Alvarez

Merge request reports