Aller au contenu
Se connecter

Databasement

Conteneur LXC DevScripts v1.10.1

Script en développement. À essayer sur une machine de test seulement.
Script en développement : le projet demande de ne pas l'utiliser en production.

Accès par défaut

Adresse
http://ADRESSE-IP:80Remplacez ADRESSE-IP par l'adresse donnée à la fin de l'installation.
Compte et mot de passe
Aucun identifiant fixe publié par la source : voir ci-dessous.
Console et SSH
Console du conteneur dans l'interface Proxmox : compte root, connexion automatique sans mot de passe. Le SSH de root n'est ouvert que si vous l'avez demandé à l'installation.
Configuration
/opt/databasement_data/.env
  • Back up APP_KEY from /opt/databasement_data/.env together with /opt/databasement_data/database.sqlite. It encrypts the stored database server passwords and, unless BACKUP_ENCRYPTION_KEY is set, the encrypted backups, so neither can be read without it.
  • A lost password is reset with: cd /opt/databasement && runuser -u www-data -- php artisan user:reset-password you@example.com

Databasement is a self-hosted database backup manager with a web UI. It registers MySQL, MariaDB, PostgreSQL, MongoDB, SQLite and Redis/Valkey servers, optionally through an SSH tunnel, runs scheduled or on-demand backups with retention and compression or encryption, stores them on local disk, S3, SFTP, FTP, Samba or Azure Blob storage, and restores snapshots to any registered server. This script runs it with PHP-FPM, nginx and SQLite.

Site ↗ Documentation ↗ Dépôt de l'application ↗ Voir le code du script ↗

Installer

Cœurs
2
Mémoire
2 Go
Disque
8 Go
Système
Debian 13
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/DevScripts/main/ct/databasement.sh)"

Configuration : /opt/databasement_data/.env

Dans le shell du nœud Proxmox. Exécutez cette commande dans le shell du nœud Proxmox, pas dans une VM. Lisez le script d'abord.

Générateur : préparer la commande avec vos réglages

Remplissez seulement ce que vous voulez changer. Les valeurs vides gardent le réglage par défaut du script.

Tutoriel pas à pas

De l'interface de Proxmox jusqu'à la première connexion, pour Databasement.

  1. Ouvrez l'interface de Proxmox dans votre navigateur et connectez-vous.

  2. Dans l'arbre de gauche, cliquez sur votre nœud, puis sur « Shell ».

  3. Vérifiez que le nœud a la place pour ce conteneur : 2 cœurs, 2 Go de mémoire, 8 Go de disque.

  4. Copiez cette commande, collez-la dans le shell et appuyez sur Entrée.

    bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/DevScripts/main/ct/databasement.sh)"
  5. À la question « Use Default Settings? », répondez oui pour garder les réglages par défaut. Répondez non pour choisir vous-même l'identifiant, l'adresse, le disque ou le réseau.

  6. Attendez la fin de l'installation : le script affiche l'adresse du conteneur.

  7. Ouvrez http://ADRESSE-IP:80 dans votre navigateur, en remplaçant ADRESSE-IP par l'adresse affichée.

  8. Pour entrer dans le conteneur : sélectionnez-le dans Proxmox, puis « Console ». La session root s'ouvre sans mot de passe.

  9. Pour mettre à jour plus tard : tapez update dans la console du conteneur.

  10. Le fichier de configuration se trouve ici : /opt/databasement_data/.env

À savoir

  • There is no default account. The first account created at http://<IP>/register becomes the administrator and closes sign-up; further users are invited from the UI. Anyone who reaches the page can claim it until then, so create it right after the install.
  • Backup and restore jobs run as www-data, so a local volume needs a path www-data can write to. /opt/databasement_data/backups is prepared for that and is also reachable as /data/backups, the path of upstream's sign-up demo backup.
  • Installed backup clients: mariadb-dump (used for MySQL as well), pg_dump 18 plus 16 for older servers, mongodump, redis-cli and sqlite3. Microsoft SQL Server and Firebird are not supported by this script: SQL Server needs Microsoft's ODBC driver and sqlpackage, Firebird the upstream gbak and isql tools.
  • Schedules run in UTC. Set APP_DISPLAY_TIMEZONE in /opt/databasement_data/.env (e.g. Europe/Berlin) for local times, then run: cd /opt/databasement && php artisan optimize && systemctl restart php8.5-fpm databasement-worker databasement-scheduler

Notes de la version v1.10.1

What's Changed

  • fix: keep a server or volume whose backup files cannot be deleted by @David-Crty in https://github.com/David-Crty/databasement/pull/703
  • chore: share business operations across every edge through actions by @David-Crty in https://github.com/David-Crty/databasement/pull/702
  • fix: same-second backups sharing one file, and other end-to-end test findings by @David-Crty in https://github.com/David-Crty/databasement/pull/704
  • feat: ability-scoped API tokens by @ktsouvalis in ht…
Dans la même catégorie

Alpine-BorgBackup-Server

Conteneur LXC

Alpine-BorgBackup-Server is a lightweight containerized backup server based on Alpine Linux and BorgBackup. It provides a secure and efficient way to manage your backups…

Mise à jour

Backrest

Conteneur LXC

Backrest is a web-accessible backup solution built on top of restic and providing a WebUI which wraps the restic CLI and makes it easy to create repos, browse snapshots,…

Mise à jour Port 9898

Bichon

Conteneur LXC

Bichon is an open-source email archiving system that synchronizes emails from IMAP servers, indexes them for full-text search, and provides a REST API for programmatic a…

Mise à jour Port 15630 Accès par défaut

Borg-UI

Conteneur LXC

Borg-UI is a web frontend for BorgBackup. It replaces the borg command line for everyday work: creating and browsing repositories, scheduling backups, inspecting archive…

Mise à jour Port 8081 Accès par défaut

Databasus

Conteneur LXC

Free, open source and self-hosted solution for automated PostgreSQL backups. With multiple storage options, notifications, scheduling, and a beautiful web interface for …

Mise à jour Port 80 Accès par défaut

Duplicati

Conteneur LXC

Duplicati is a free, open-source backup solution that offers zero-trust, fully encrypted backups for your data.

Mise à jour Port 8200