Skip to content

Instantly share code, notes, and snippets.

@huacnlee
Created February 3, 2020 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huacnlee/82c3d814ea511dffed8b9e90d2aae4b4 to your computer and use it in GitHub Desktop.
Save huacnlee/82c3d814ea511dffed8b9e90d2aae4b4 to your computer and use it in GitHub Desktop.
Gobackup for Homeland config example
models:
homeland:
compress_with:
type: tgz
encrypt_with:
type: openssl
password: your-archive-password
store_with:
type: oss
bucket: your-backup-bucket-name
endpoint: oss-cn-hangzhou.aliyuncs.com
access_key_id: your-access-key-id
access_key_secret: your-access-key-secret
path: backups
archive:
includes:
- /home/ubuntu/.ssh/
- /home/ubuntu/.gobackup/gobackup.yml
- /data/scripts
- /data/homeland-docker/shared/ssl/
- /data/homeland-docker/etc/
- /data/homeland-docker/app.local.env
- /data/homeland-docker/app.secret.env
databases:
postgresql:
type: postgresql
host: 127.0.0.1
database: homeland
username: postgres
redis:
type: redis
host: localhost
mode: copy
invoke_save: false
rdb_path: /data/homeland-docker/data/redis/dump.rdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment