Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobvanluijt/gcloud-storage-transfer-tool
Tool to easily upload stuff or websites to gcloud
https://github.com/bobvanluijt/gcloud-storage-transfer-tool
Last synced: 24 days ago
JSON representation
Tool to easily upload stuff or websites to gcloud
- Host: GitHub
- URL: https://github.com/bobvanluijt/gcloud-storage-transfer-tool
- Owner: bobvanluijt
- Created: 2016-10-14T09:53:35.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-19T16:04:34.000Z (about 8 years ago)
- Last Synced: 2024-12-15T11:57:09.368Z (26 days ago)
- Language: Go
- Size: 3.96 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Gcloud Storage Transfer Tool
Goal of this tool is to easily sync data (for data storage or website hosting) with the Google Cloud.
_Note: still working on this. Watch the repo to see when it is done_## Install
1. Make sure you have [Google gcloud installed](https://cloud.google.com/sdk/gcloud/).
2. You can use the file in the `./bin` to run directly or (if you have Go installed) use `go run gcloud-st.go [arguments]`## Example:
`$ ./gcloud --project=my-project --bucket=test-bucket-abc-123 --dir=./ --gzip=true --public=true --quite=true --watch=true`
## Usage with build version
You can use:
| Argument | Description |
|-----------------|-------------------------------------------------------------------------|
| `--project` | Project id (mandatory) |
| `--bucket` | Bucket id (mandatory) |
| `--dir` | Set the dir that needs to be uploaded |
| `--file` | Set the file that needs to be uploaded |
| `--public` | If set, content will be public (ie. for website) |
| `--gzip` | If set, content will be gziped and content header will be set correctly |
| `--watch` | If set, updated dir or file will re-upload |
| `--quite` | If set, only errors will be shown |
| `--allowHidden` | If set, hidden files will be uploaded too |_Note: `--dir-` or `--file` is mandatory_
Example: `$ ./gcloud-st --project=projectId --bucket=bucketnNme --dir=./dirLocation --public --gzip`