Skip to content

Commit

Permalink
APPS-1032 Update configuration and restore examples (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
edramaspk authored Dec 18, 2023
1 parent 497553f commit cc93bec
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 32 deletions.
43 changes: 22 additions & 21 deletions config/minio_config.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,31 @@
---
aerospike-clusters:
cluster1:
absCluster1:
host: "localhost"
port: 3000
# user: "tester"
# password: "psw"

user: tester
password: psw
storage:
s3:
minioStorage:
# type 1 for s3 and type 0 for local storage.
type: 1
s3-endpoint-override: "http://localhost:9000"
s3-region: "eu-central-1"
s3-profile: "minio"
path: "s3://as-backup-bucket/test-backup"

# Before you start the service, create a bucket called as-backup-bucket in Minio.
path: s3://as-backup-bucket/minioStorage
s3-region: eu-central-1
s3-profile: minio
s3-endpoint-override: http://localhost:9000
backup-policies:
policy1:
type: 1
keepFilesPolicy:
# Run the backup in one thread.
parallel: 1
# Full backups will not be deleted when a new one will be created.
remove-files: false

backup-routines:
routine1:
interval: 30000
incr-interval: 5000
backup-policy: "policy1"
source-cluster: "cluster1"
storage: "s3"
namespace: "test"
minioKeepFilesRoutine:
# 24 hours interval for full backups.
interval: 86400000
# 1 hour interval for incremental backups.
incr-interval: 3600000
source-cluster: absCluster1
storage: minioStorage
namespace: source-ns1
backup-policy: keepFilesPolicy
15 changes: 11 additions & 4 deletions examples/restore.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"host": "localhost",
"port": 3000,
"directory": "./testout/backup",
"set_list": ["set1"]
"destination": {
"host": "localhost",
"port": 3000
},
"policy": {
"set_list": ["set1"],
"no-generation": true
},
"source": {
"path": "./testout/backup"
}
}
21 changes: 14 additions & 7 deletions examples/s3_restore.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"host": "localhost",
"port": 3000,
"directory": "s3://as-backup-bucket/test-backup",
"s3_region": "eu-central-1",
"s3_profile": "minio",
"s3_endpoint_override": "http://localhost:9000",
"set_list": ["set1"]
"destination": {
"host": "localhost",
"port": 3000
},
"policy": {
"set_list": ["set1"],
"no-generation": true
},
"source": {
"path": "s3://as-backup-bucket/minioStorage",
"s3_region": "eu-central-1",
"s3_profile": "minio",
"s3_endpoint_override": "http://localhost:9000"
}
}

0 comments on commit cc93bec

Please sign in to comment.