add bookshelf module, fix gitea minor typo, add fixe ip for vms

This commit is contained in:
2026-01-14 10:15:55 +01:00
parent b735996b8d
commit d98c7b8bdb
20 changed files with 410 additions and 230 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
source /opt/bookshelf/env.sh
TIMESTAMP=$(date +'%Y-%m-%d_%H%M%S')
docker exec bookshelf-database-1 mariadb-dump --all-database -u root -p"$MARIADB_ROOT_PASSWORD" > $BOOKSHELF_BACKUPS_DIR/bookshelf-dump-$TIMESTAMP.sql
ls -1dt $BOOKSHELF_BACKUPS_DIR/$BOOKSHELF_BACKUP_PREFIX-*.zip | tail -n +5 | xargs -r rm -f