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

Delete local old backup files

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\\test_file_717" 

2.bak.toml

[public]
# Keep last 3 historical backups locally
history_bak_num = 1

# 日志目录:放在 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 cleanup local --config-home %USERPROFILE%\.peppykeep\conf

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

=== Dry Run ===
Action  : cleanup local
Project : test_717_file
Force   : false
Next    : Re-run with --apply to execute.

Result

FieldDescription
ActionThe type of operation currently performed, fixed to cleanup local
ProjectItems to be cleaned, this time test_717_file
ForceWhether to enforce, this time isfalse
NextPrompt: rerun with ’–apply` parameter if you really want to execute

Delete execution

Delete local old backups

peppykeep cleanup local --apply --config-home %USERPROFILE%\.peppykeep\conf

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

=== Completed ===
Action  : cleanup local
Project : test_717_file
Force   : false
Status  : Command completed successfully.

Result

FieldDescription
ActionThe type of operation currently performed, fixed to cleanup local
ProjectThe project for this cleanup istest_717_file
ForceWhether to enforce, this time isfalse
StatusTask execution status, this execution was successful ✅

Order Details Reference