Skip to main content

Simple backup service

Project description

Auto Backup Service

Use as a docker compose service

Add the following to your compose.yml:

services:
  # Other services...
  backup:
    image: wenyuzhao/backup:latest
    container_name: my-backup
    restart: always
    volumes:
      - ./path/to/your/data/folder:/backup/example
      - ./.creds.json:/.creds.json # Google cloud service account key file
    environment:
      - BACKUP_INTERVAL=daily-17:00 # Daily at 3:00 AM AEST
      - BUCKET=your-bucket-name # Alternatively, add a "bucket" field to .creds.json

To trigger backup once immediately, run docker compose run backup now.

Use as a command-line tool for one-time backup

Make sure there is a creds.json or .creds.json under either $PWD or $HOME/.config/z-backup

  1. Install the executable: pipx install z-backup
  2. Run z-backup ./path/to/your/data/folder

Push New Image

docker buildx build --push --platform linux/arm64,linux/amd64 --tag wenyuzhao/backup:latest .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

z_backup-0.1.1.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

z_backup-0.1.1-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page