Small improvements
This commit is contained in:
parent
b9b0cae0d2
commit
fa275b8b74
3 changed files with 17 additions and 8 deletions
|
|
@ -18,10 +18,11 @@ services:
|
|||
- BORG_PASSPHRASE_1=$PASSWORD
|
||||
- BORG_REPO_1=/local-backup
|
||||
|
||||
- KEEP_DAILY=6 # the following are passed to `borg prune`
|
||||
- KEEP_WEEKLY=3
|
||||
- KEEP_MONTHLY=48
|
||||
- KEEP_YEARLY=10
|
||||
# the following are passed to `borg prune`
|
||||
- KEEP_DAILY=6 # default: 6
|
||||
- KEEP_WEEKLY=3 # default: 3
|
||||
- KEEP_MONTHLY=48 # default: 48
|
||||
- KEEP_YEARLY=10 # default: 0
|
||||
volumes:
|
||||
- /volumes:/source:ro # we will backup this folder, we mustn't change it, so it's readonly
|
||||
- /volumes/backup:/snapshot # we must mount a btrfs path for the snapshot to be put at, this is just a temporary path
|
||||
|
|
@ -29,7 +30,7 @@ services:
|
|||
- borg-cache:/root/.cache/borg # speed up subsequent backups
|
||||
|
||||
- /bulk/backup:/local-backup # this is an example target backup path for BORG_REPO_1 from above
|
||||
- /volumes/backup/id_rsa:/root/.ssh/id_rsa # this is an example for mounting an ssh key for a remote repo (BORG_REPO_0 above)
|
||||
- /volumes/backup/config/id_rsa:/root/.ssh/id_rsa # this is an example for mounting an ssh key for a remote repo (BORG_REPO_0 above)
|
||||
|
||||
cap_add:
|
||||
- SYS_ADMIN # we need this capability to snapshot a btrfs volume
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue