-
Notifications
You must be signed in to change notification settings - Fork 207
Closed
Description
tested using v1 and master of docker hub image. (eg: databack/mysql-backup:1.0.0 and databack/mysql-backup:master)
Tried running the entrypoint directly.
Note: AWS Credentials are passed via Environment Variables.
DEBUG LOGS:
With command: ./entrypoint prune --target=s3://***-backup-mumbai/mysql/dumps-frequent --retention=2c --verbose=2 --debug
Output:
DEBU[0000] starting prune
INFO[0000] beginning prune run=fa663208-6015-44c6-9cea-8201b75a295a
DEBU[0000] pruning target s3://********-backup-mumbai/mysql/dumps-frequent run=fa663208-6015-44c6-9cea-8201b75a295a
SDK 2024/12/16 13:22:57 DEBUG Request
GET /?list-type=2&prefix=. HTTP/1.1
Host: *********-backup-mumbai.s3.ap-south-1.amazonaws.com
User-Agent: m/E aws-sdk-go-v2/1.32.3 os/linux lang/go#1.22.9 md/GOOS#linux md/GOARCH#amd64 api/s3#1.66.2
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 8ed63a4b-55ec-4444-b56*****************
Amz-Sdk-Request: attempt=1; max=3
Authorization: AWS4-HMAC-SHA256 Credential=AKIAZ2N**************/20241216/ap-south-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=5b9631e03f7713c6871a6b**************************
X-Amz-Content-Sha256: e3b0c44298fc1c149af**********************
X-Amz-Date: 20241216T132257Z
SDK 2024/12/16 13:22:57 DEBUG Response
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 16 Dec 2024 13:22:58 GMT
Server: AmazonS3
X-Amz-Bucket-Region: ap-south-1
X-Amz-Id-2: EjcP0Vt5MLu+fWE8**************************
X-Amz-Request-Id: GCMGH*************
DEBU[0000] pruning 0 files from target &{{s3 %!s(*url.Userinfo=<nil>) *******-backup-mumbai /mysql/dumps-frequent %!s(bool=false) %!s(bool=false) } %!s(bool=false) } run=fa663208-6015-44c6-9cea-8201b75a295a
With command: ./entrypoint prune --target=s3://****-backup-mumbai/mysql/dumps-frequent --retention=1h --verbose=2 --debug
Output:
DEBU[0000] starting prune
INFO[0000] beginning prune run=bcad4177-cceb-41fd-8364-8cf9c6baae06
DEBU[0000] pruning target s3://********-backup-mumbai/mysql/dumps-frequent run=bcad4177-cceb-41fd-8364-8cf9c6baae06
SDK 2024/12/16 13:27:23 DEBUG Request
GET /?list-type=2&prefix=. HTTP/1.1
Host: *********-backup-mumbai.s3.ap-south-1.amazonaws.com
User-Agent: m/E aws-sdk-go-v2/1.32.3 os/linux lang/go#1.22.9 md/GOOS#linux md/GOARCH#amd64 api/s3#1.66.2
Accept-Encoding: identity
Amz-Sdk-Invocation-Id: 7606e64a-a784-4f31-8a**************
Amz-Sdk-Request: attempt=1; max=3
Authorization: AWS4-HMAC-SHA256 Credential=AKIAZ2N2O***********/20241216/ap-south-1/s3/aws4_request, SignedHeaders=accept-encoding;amz-sdk-invocation-id;amz-sdk-request;host;x-amz-content-sha256;x-amz-date, Signature=b05dbd22d7426c592a3269c3497******************
X-Amz-Content-Sha256: e3b0c44298fc1c149afbf4c8****************
X-Amz-Date: 20241216T132723Z
SDK 2024/12/16 13:27:23 DEBUG Response
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Type: application/xml
Date: Mon, 16 Dec 2024 13:27:24 GMT
Server: AmazonS3
X-Amz-Bucket-Region: ap-south-1
X-Amz-Id-2: vHmc4QmXfID2d1d*************************
X-Amz-Request-Id: TBD4CE*********************
DEBU[0000] pruning 0 files from target &{{s3 %!s(*url.Userinfo=<nil>) ********-backup-mumbai /mysql/dumps-frequent %!s(bool=false) %!s(bool=false) } %!s(bool=false) } run=bcad4177-cceb-41fd-8364-8cf9c6baae06
Screenshot of Backup Directory:

Metadata
Metadata
Assignees
Labels
No labels