paspo 293814277d
All checks were successful
Container Publish / on-success-skip (push) Has been skipped
Container Publish / build-image (arm64) (push) Successful in 35s
Container Publish / build-image (amd64) (push) Successful in 50s
Container Publish / update docker manifest (push) Successful in 10s
Vulnerability Scan / Daily Vulnerability Scan (arm64) (push) Successful in 9s
Vulnerability Scan / Daily Vulnerability Scan (amd64) (push) Successful in 49s
retention
2025-12-16 13:51:50 +01:00
2025-12-14 21:27:17 +01:00
2025-12-16 13:51:50 +01:00
2025-12-14 21:32:55 +01:00
2025-12-14 22:00:57 +01:00
2025-12-14 21:27:17 +01:00
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
Description
No description provided
Readme GPL-3.0 58 KiB
Languages
Shell 92.1%
Dockerfile 7.9%