No description
Find a file
paspo c7fe10acaf
All checks were successful
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 34s
Container Publish / build-image (amd64) (push) Successful in 51s
Container Publish / update docker manifest (push) Successful in 10s
forgejo update
2026-01-19 15:14:11 +01:00
.forgejo/workflows forgejo update 2026-01-19 15:14:11 +01:00
rootfs/app retention 2025-12-16 13:51:50 +01:00
.gitignore added gitignore 2025-12-14 21:32:55 +01:00
Dockerfile better healthcheck 2025-12-14 22:00:57 +01:00
LICENSE initial release 2025-12-14 21:27:17 +01:00
README.md retention 2025-12-16 13:51:50 +01:00

mariadb backup via rclone

usage

Sample docker-compose.yaml file:

services:
  db:
    image: mariadb:11
    restart: always
    volumes:
      - ./data:/var/lib/mysql
    environment:
      MARIADB_ROOT_PASSWORD: 1StrongPassword
      MARIADB_DATABASE: my-db
    ports:
      - 3306:3306
    healthcheck:
      test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
      start_period: 1m
      start_interval: 10s
      interval: 1m
      timeout: 5s
      retries: 3
  backup:
    image: docker.asperti.com/paspo/mariadbbackup-rclone:latest
    volumes:
      - ./config:/config:ro
    environment:
      MARIADB_HOST: db
      MARIADB_USER: root
      MARIADB_PORT: 3306
      MARIADB_PASSWORD: 1StrongPassword
      MARIADB_DATABASE: my-db
      CRONTAB: "15 */4 * * *"
      COMPRESSION: gzip  # gzip | bzip2 | xz | zstd
      KEEP_SUCCESFUL_DAYS: 15  # default is 30
      RCLONE_REMOTE: myremote
      RCLONE_PATH: /backups
      RCLONE_CONFIG_FILE: /config/rclone.conf

Sample rclone.conf file:

[dest]
type = smb
host = 192.168.1.100
user = myuser
# mypassword
pass = csWMBe2l6hhopqleKNGcojqVY9DKT5dPrYA