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
- Install the executable:
pipx install z-backup - Run
z-backup ./path/to/your/data/folder
Push New Image
docker buildx build --push --platform linux/arm64,linux/amd64 --tag wenyuzhao/backup:latest .
Release files for z-backup 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| z_backup-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| z_backup-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / z_backup-0.1.1.tar.gz
| Download URL | z_backup-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae3dcbbb184982b438e7cca6c8fe4974140c9ce84a528d063eae19f7f881d38e
|
|
BLAKE2b-256 checksum How to use checksums |
1251b6e2120ec7699ac0b3c071355bf16c1d46c82360b1ddc8faa6a55b35d53a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-41-generic
|
Release files / z_backup-0.1.1-py3-none-any.whl
| Download URL | z_backup-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
001721f29b973c5021126d52400f38072f1c4a6dd10aaa93040c37de272e9799
|
|
BLAKE2b-256 checksum How to use checksums |
fa1bdd417088ac760dc948e40d9436afd643ea7fc15dbe44f500adcb7508c7a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-41-generic
|