google / GiftStick

1-Click push forensics evidence to the cloud
Apache License 2.0
137 stars 21 forks source link

Add collecting a directory, via a TAR archive #98

Closed rgayon closed 4 years ago

rgayon commented 4 years ago

Adding a new 'directory' recipe.

When specified explicitely, will ask the user for a list of directories to copy.

Currently the only implemented way to upload a directory is to create a tar archive on the fly. Unfortunately this method won't preserve metadata such as atime. This information is saved before creating the archive by also uploading a .timeline file which contains a bodyfile-compatible timeline for that folder.

Tests will pass when #105 is in

codecov-commenter commented 4 years ago

Codecov Report

Merging #98 into master will decrease coverage by 1.97%. The diff coverage is 60.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #98      +/-   ##
==========================================
- Coverage   82.13%   80.16%   -1.98%     
==========================================
  Files          22       24       +2     
  Lines        1472     1613     +141     
==========================================
+ Hits         1209     1293      +84     
- Misses        263      320      +57     
Impacted Files Coverage Δ
auto_forensicate/recipes/disk.py 73.65% <ø> (ø)
auto_forensicate/ux/cli.py 9.75% <0.00%> (ø)
auto_forensicate/recipes/directory.py 44.66% <44.66%> (ø)
auto_forensicate/auto_acquire.py 67.11% <100.00%> (+0.59%) :arrow_up:
tests/auto_forensicate_tests.py 99.43% <100.00%> (ø)
tests/directory_tests.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 305b5fe...2f2cdd6. Read the comment docs.