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

Extra Large Directory Volume Archive Backup

The extra large directory usesbackup large-dir, which is independent ofbak_typein bak.toml '; you need to configure local_tmp_home , optional [object_storage] , and specify data_dir in prj.toml `.

Backup to local

enforce_provisioning_action

1.prj.toml

# Project identifiers for relative path and directory identification
prj_key = "test_717_file"
# Local Data Storage Directory
data_dir = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\data"

2.bak.toml

[public]

# Backups are also saved locally
bak_location_type = "local"

# Keep last 3 historical backups locally
history_bak_num = 3

# Log level is debug mode (outputs the most detailed logs)
log_level = "DEBUG"

# 日志目录:放在 Temp 下的 my_test_peppykeep
log_dir = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\logs"

# 备份产出目录
local_bak_home = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\backup"

# 临时目录(必须符合规则)
local_tmp_home = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\.tmp"

# The maximum length of the backup queue is 1 (serial execution, no concurrency)
max_bak_queue_size = 1

Perform the preliminary checks: §.

Open Terminal Execution

peppykeep backup large-dir run --config-home %USERPROFILE%\.peppykeep\conf

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

Action      : backup large-dir run
Project     : test_717_file
DataDir     : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\data
ChunkSize   : 4.0 GiB
Compression : none
Upload      : false
Resume      : false
TaskRoot    : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp/tasks
Next        : Re-run with --apply to execute.

Result

FieldDescription
ActionThe type of operation currently performed, fixed asbackup large-dir run
ProjectProject identifier, corresponding to prj_key, this time test_717_file
DataDirThe path to the data directory to back up, this time C:\ Users\ admin\ AppData\ Local\ Temp\ my_test_peppykeep\ data
ChunkSizeThreshold size per shard, this time 4.0 GiB
CompressionCompression mode, this time none (uncompressed)
UploadWhether to enable object storage uploads, this time false (save locally only)
ResumeWhether to continue the previous task, this time isfalse(new task)
TaskRootTask storage root directory, this time is C:\ Users\ admin\ AppData\ Local\ Temp\ my_test_peppykeep\ .tmp/tasks
NextPrompt: rerun with ’–apply` parameter if you really want to execute

Perform a backup

Performing Extra Large Directory Volume Archive Backups

peppykeep backup large-dir run --apply --config-home %USERPROFILE%\.peppykeep\conf

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

=== Completed ===
Action           : backup large-dir run
TaskId           : 1784010973296
TaskDir          : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784010973296
Manifest         : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784010973296\manifest.json
State            : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784010973296\state.json
FileCount        : 0
TotalSize        : 0 B
Parts            : 0
ChunkSize        : 4.0 GiB
Compression      : none
Upload           : false
ManifestUploaded : false
Status           : Command completed successfully.

Result

FieldDescription
ActionThe type of operation currently performed, fixed asbackup large-dir run
TaskIdUnique identifier of the task used to track this backup task
TaskDirTask working directory, where task-related files are stored
ManifestManifest file path, list of files to record backup and metadata
StateStatus file path to record the progress of the backup (for breakpoint continuation)
FileCountNumber of files backed up this time, total 0 files (directory is empty)
TotalSizeTotal size of backup data, this time 0 bytes (no data to backup)
PartsNumber of shards, this time 0 (no data, no shards required)
ChunkSizeThreshold size per shard, this time 4 GiB
CompressionCompression mode, this time uncompressed
UploadWhether to enable object storage uploads, this time false (save locally only)
ManifestUploadedWhether the manifest file has been uploaded to the object store, this time isfalse
StatusTask execution status, this execution was successful ✅(but no data was backed up)

Backup to Object Storage

enforce_provisioning_action

1.prj.toml

# Project identifiers for relative path and directory identification
prj_key = "test_717_file"
# Local Data Storage Directory
data_dir = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\data"

2.bak.toml

[public]

# Save backups both locally and remotely
bak_location_type = "local_and_remote"

# Keep last 3 historical backups locally
history_bak_num = 3

# Log level is debug mode (outputs the most detailed logs)
log_level = "DEBUG"

# 日志目录:放在 Temp 下的 my_test_peppykeep
log_dir = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\logs"

# 备份产出目录
local_bak_home = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\backup"

# 临时目录(必须符合规则)
local_tmp_home = "C:\\Users\\admin\\AppData\\Local\\Temp\\my_test_peppykeep\\.tmp"

# The maximum length of the backup queue is 1 (serial execution, no concurrency)
max_bak_queue_size = 1

Perform the preliminary checks: §.

Open Terminal Execution

peppykeep backup large-dir run --config-home %USERPROFILE%\.peppykeep\conf

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

=== Dry Run ===
Action      : backup large-dir run
Project     : test_717_file
DataDir     : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\data
ChunkSize   : 4.0 GiB
Compression : none
Upload      : true
Resume      : false
TaskRoot    : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp/tasks
Next        : Re-run with --apply to execute.

Result

FieldDescription
ActionThe type of operation currently performed, fixed asbackup large-dir run
ProjectProject identifier, corresponding to prj_key, this time test_717_file
DataDirThe path to the data directory to back up, this time C:\ Users\ admin\ AppData\ Local\ Temp\ my_test_peppykeep\ data
ChunkSizeThreshold size per shard, this time 4.0 GiB
CompressionCompression mode, this time none (uncompressed)
UploadWhether to enable the object storage upload, this time istrue(upload to the object storage after the backup is completed)
ResumeWhether to continue the previous task, this time isfalse(new task)
TaskRootTask storage root directory, this time is C:\ Users\ admin\ AppData\ Local\ Temp\ my_test_peppykeep\ .tmp/tasks
NextPrompt: rerun with ’–apply` parameter if you really want to execute

Perform a backup

Performing Extra Large Directory Volume Archive Backups

peppykeep backup large-dir run --apply --config-home %USERPROFILE%\.peppykeep\conf

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

=== Completed ===
Action           : backup large-dir run
TaskId           : 1784011083252
TaskDir          : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784011083252
Manifest         : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784011083252\manifest.json
State            : C:\Users\admin\AppData\Local\Temp\my_test_peppykeep\.tmp\tasks\test_717_file-1784011083252\state.json
FileCount        : 0
TotalSize        : 0 B
Parts            : 0
ChunkSize        : 4.0 GiB
Compression      : none
Upload           : true
ManifestUploaded : true
Status           : Command completed successfully.

Result description (S3 as an example)

FieldDescription
ActionThe type of operation currently performed, fixed asbackup large-dir run
TaskIdUnique identifier of the task used to track this backup task
TaskDirTask working directory, where task-related files are stored
ManifestManifest file path, list of files to record backup and metadata
StateStatus file path to record the progress of the backup (for breakpoint continuation)
FileCountNumber of files backed up this time (0 when sample directory is empty)
TotalSizeTotal size of backup data
PartsNumber of shards (0 when no data is available)
ChunkSizeThreshold size per shard, this time 4 GiB
CompressionCompression mode, this time uncompressed
UploadWhether to enable the object storage upload, this time istrue(upload to the object storage after the backup is completed)
ManifestUploadedWhether the manifest file has been uploaded to the object store, this time true (uploaded)
StatusTask execution status, this execution was successful ✅

Order Details Reference