Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Download an existing backup file from the object store to your local

enforce_provisioning_action

  1. bak.toml (S3 as an example)
# Enable Object Storage
[object_storage]
enabled = true

# Using S3 protocol (Backblaze B2 compatible)
provider = "s3"

# Bucket Name
bucket = "TestBucket"

# Object key prefix (like folder path)
prefix = "test_local"

# S3 Compatible Endpoints (Backblaze B2 + East)
endpoint = "https://s3.xxxxxxxxxxxxxx.com"

Region
region = "ca-east-006"

Access Key ID
access_key_id = "xxxxxxxxxxxxxx"

Access key
access_key_secret = "xxxxxxxxxxxxxx"

# Use path style URL (bucket/object instead of web hosting style)
path_style = true

点击查看详情

Perform the preliminary checks: §.

Open Terminal Execution

# Database Backup Precheck
peppykeep backup download-artifact --remote-key test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk --output-file C:\\Users\\admin\\AppData\\Local\\Temp\\test\\testdb.ppk --config-home %USERPROFILE%\.peppykeep\conf

When the pre-test is successful, the output is as follows:

=== Dry Run ===
Action         : backup download-artifact
RemoteKey      : test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk
Output         : C:\\Users\\admin\\AppData\\Local\\Temp\\test\\testdb.ppk
Bucket         : VoosTestBucket
Provider       : s3
RestoreArchive : false
Wait           : false
RestoreDays    : 1
WaitTimeout    : 1800
PollInterval   : 30
Next           : Re-run with --apply to execute.

Result

FieldDescription
ActionType of operation performed: backup download-artifact (download backup file)
RemoteKeyRemote file path in object store: test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk
OutputLocal output file path: C:\\ Users\\ admin\\ AppData\\ Local\\ Temp\\ test\\ testdb.ppk
BucketBucket name: VoosTestBucket (read from configuration file)
ProviderObject storage provider: s3 (read from configuration file)
RestoreArchiveDo you want to restore from archive storage: false (no)
WaitWaiting for archive recovery to complete: false (No)
RestoreDaysNumber of days to keep after archive restore: 1 (days)
WaitTimeoutTimeout waiting for archive restore: 1800 (seconds)
PollIntervalPolling archive recovery state interval: 30 (seconds)
NextNext Action Tip: Re-run with --apply to execute. (need to add --apply parameter to execute)

Perform a backup

Performing a Database Backup

peppykeep backup download-artifact --remote-key test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk --output-file C:\\Users\\admin\\AppData\\Local\\Temp\\test\\testdb.ppk --apply --config-home %USERPROFILE%\.peppykeep\conf

After executing the backup command, the output on success is as follows:

=== Completed ===
Action         : backup download-artifact
RemoteKey      : test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk
Output         : C:\\Users\\admin\\AppData\\Local\\Temp\\test\\testdb.ppk
Bucket         : VoosTestBucket
Provider       : s3
RestoreArchive : false
Resumed        : false
Written        : 0
TotalSize      : 1186
Status         : Command completed successfully.

Result

FieldDescription
ActionType of operation performed: backup download-artifact (download backup file)
RemoteKeyRemote file path in object store: test_local_voos/test_717_file/test_717_file-bak_20260703_172943.ppk
OutputLocal output file path: C:\\ Users\\ admin\\ AppData\\ Local\\ Temp\\ test\\ testdb.ppk
BucketBucket name: VoosTestBucket (read from configuration file)
ProviderObject storage provider: s3 (read from configuration file)
RestoreArchiveDo you want to restore from archive storage: false (no)
ResumedWhether to enable breakpoint continuation: false (no)
WrittenNumber of bytes actually written this time: 0 (bytes)
TotalSizeTotal size of remote object: 1186 (bytes)
StatusExecution Status: Command completed successfully. (Command executed successfully)

Order Details Reference