pull_changed_files¶
Automatically pull all files that changed or were added between two filesystem snapshots.
Usage Example¶
actions:
# Capture initial filesystem state
- snapshot_filesystem:
variable: "fs_before"
description: "Initial state"
# Perform operations that modify files
- command:
command: "create_files.sh"
shell: true
# Capture final filesystem state
- snapshot_filesystem:
variable: "fs_after"
description: "Final state"
# Pull all changed/added files
- pull_changed_files:
snapshot_before: "fs_before"
snapshot_after: "fs_after"
description: "Pull modified forensic artifacts"
Parameters¶
Parameter |
Type |
Description |
|---|---|---|
|
string |
Variable name with initial snapshot (required) |
|
string |
Variable name with final snapshot (required) |
|
string |
Destination folder in artifacts (default: |
|
string |
Transfer mode: |
|
boolean |
Pull modified files (default: true) |
|
boolean |
Pull added files (default: true) |
|
string |
Human-readable description (optional) |
File Categories¶
Modified: Files that existed before and were changed
Added: Files that did not exist before
Deleted: Files tracked but not pulled (verify with tests)
Notes¶
Automatically calculates diff between snapshots
Uses efficient chunked transfer for multiple files
Preserves full VM path structure in destination
At least one of
include_modifiedorinclude_addedmust be trueUseful for forensic artifact collection after operations
See Also¶
snapshot_filesystem for capturing filesystem state
pull for pulling specific files