Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/islishude/gotgz
Similar with tar + gzip, but supports s3
https://github.com/islishude/gotgz
go gzip s3 tar
Last synced: 2 days ago
JSON representation
Similar with tar + gzip, but supports s3
- Host: GitHub
- URL: https://github.com/islishude/gotgz
- Owner: islishude
- Created: 2023-02-15T14:35:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-31T14:36:29.000Z (over 1 year ago)
- Last Synced: 2024-06-21T03:33:10.370Z (7 months ago)
- Topics: go, gzip, s3, tar
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gotgz
Similar to `tar + gzip`, but supports S3
**differences from tar**
1. gzip is enabled as default
2. `-xvf` form is not supported, you should use `-x -v -f`
3. keep the leading slash of absolute paths
4. Only files and directories are supported## Compress
```console
$ gotgz -v -c -f s3://your-s3-bucket/path.tgz public src
a public
a public/favicon.ico
a public/next.svg
a public/thirteen.svg
a public/vercel.svg
a src
a src/app
a src/app/globals.css
a src/app/head.js
a src/app/layout.js
a src/app/page.js
a src/app/page.module.css
a src/pages
a src/pages/api
a src/pages/api/hello.js
Time cost: 7.154367ms
````-f` also supports a local path.
## Decompress
```console
$ gotgz -v -x -f s3://your-s3-bucket/path.tgz
x public
x public/favicon.ico
x public/next.svg
x public/thirteen.svg
x public/vercel.svg
x src
x src/app
x src/app/globals.css
x src/app/head.js
x src/app/layout.js
x src/app/page.js
x src/app/page.module.css
x src/pages
x src/pages/api
x src/pages/api/hello.js
Time cost: 2.987865ms
````-f` also supports a local path.