Borg Backup pull mode docker container
1.2K
Borg Backup Pull Mode Docker Container enabled ability to backup your data by pulling them from your server without the need of setting up a dedicated backup server.
For more detail please visit our Github's repo at https://github.com/workleast/borgpull-docker
Xem hướng dẫn sử dụng bằng Tiếng Việt tại đây: https://workleast.com/sao-luu-du-lieu-voi-borg-pull-docker/
services:
borgpull:
build:
context: .
restart: always
image: workleast/borgpull
container_name: borgpull
volumes:
- path/to/repository:/backups # replace with your actual path to repository directory here
- ./config/ssh/id_rsa:/root/.ssh/id_rsa # replace with your SSH private key file
- ./config/crontab.txt:/etc/crontabs/root # edit crontab.txt file to schedule automatic backups
environment:
TZ: "Asia/Ho_Chi_Minh"
BACKUP_ADDR: "user@server_ip" # replace with your actual backup server's address here
ARCHIVE_NAME: "archive-{now:%Y-%m-%dT%H:%M:%S}"
TARGET_DIR: "/" # replace with your target directory (to be backed up) in the backup server
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
security_opt:
- apparmor:unconfined
docker exec -it borgpull borgpull init
docker exec -it borgpull borgpull create
docker exec -it borgpull borgpull list
docker exec -it borgpull borgpull delete ARCHIVE_NAME
docker exec -it borgpull borgpull restore ARCHIVE_NAME
Content type
Image
Digest
sha256:84ead5f91…
Size
27.4 MB
Last updated
almost 2 years ago
docker pull workleast/borgpull