Skip to content

About

Archive to an S3 Bucket. Disclaimer: Generative AI is used

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

S3 Directory Archiver

Archive any local directory to a single S3 bucket.
Source files are never modified. Dry-run is the default.

Config (config.json)

{
  "source_dir": "~/Downloads",
  "work_dir": "~/s3-archive-work",
  "bucket": "soabcr",
  "prefix": "archive",
  "aws_profile": "default",
  "aws_region": "eu-central-1"
}

Archive

Dry-run

python3 archive.py --config config.json

Upload

python3 archive.py --config config.json --upload

Restore

List runs

aws s3 ls s3://soabcr/archive/

List files in a run

python3 restore.py --bucket soabcr --prefix archive --run-id RUN_ID --list

Restore one file

python3 restore.py --bucket soabcr --prefix archive --run-id RUN_ID \
  --file "path/to/file.csv" --dest ~/restored

Restore everything

python3 restore.py --bucket soabcr --prefix archive --run-id RUN_ID \
  --all --dest ~/restored

About

Archive to an S3 Bucket. Disclaimer: Generative AI is used

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages