Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backend for Google Cloud Storage (GCS) #1134

Merged
merged 6 commits into from
Aug 9, 2017
Merged

Add backend for Google Cloud Storage (GCS) #1134

merged 6 commits into from
Aug 9, 2017

Conversation

fd0
Copy link
Member

@fd0 fd0 commented Jul 24, 2017

Main work by @diptadas, thank you very much! Successor of #1052.

TODO:

Closes #211

@xor-gate
Copy link

Is the GCS the same as Gdrive or is it different?

@fd0
Copy link
Member Author

fd0 commented Jul 24, 2017

It's entirely different. GCS is similar to S3.

@xor-gate
Copy link

xor-gate commented Jul 24, 2017

I see, the tool rclone (golang) tool does support gdrive maybe we can find a way to create also a gdrive backend. But thanks for your answer, I will continue in a different thread (#527)

@fd0 fd0 changed the title Add GCS backend Add backend for Google Cloud Storage (GCS) Jul 24, 2017
@codecov-io
Copy link

codecov-io commented Jul 24, 2017

Codecov Report

Merging #1134 into master will increase coverage by 0.11%.
The diff coverage is 57.51%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1134      +/-   ##
==========================================
+ Coverage   52.71%   52.83%   +0.11%     
==========================================
  Files         122      124       +2     
  Lines       11454    11760     +306     
==========================================
+ Hits         6038     6213     +175     
- Misses       4708     4823     +115     
- Partials      708      724      +16
Impacted Files Coverage Δ
internal/backend/location/location.go 60% <ø> (ø) ⬆️
cmd/restic/global.go 21.25% <0%> (-1.65%) ⬇️
internal/backend/gs/gs.go 60.78% <60.78%> (ø)
internal/backend/gs/config.go 77.77% <77.77%> (ø)
internal/archiver/archiver.go 64.73% <0%> (-0.17%) ⬇️

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 2c22ff1...77bf170. Read the comment docs.

@fd0 fd0 force-pushed the gcs-support branch 3 times, most recently from 394ad71 to a8d2e8a Compare August 5, 2017 21:10
diptadas and others added 4 commits August 6, 2017 21:47
Environment variables:
GOOGLE_PROJECT_ID=gcp-project-id
GOOGLE_APPLICATION_CREDENTIALS=path-to-json-file

Environment variables for test:
RESTIC_TEST_GS_PROJECT_ID=gcp-project-id
RESTIC_TEST_GS_APPLICATION_CREDENTIALS=path-to-json-file
RESTIC_TEST_GS_REPOSITORY=gs:us-central1/test-bucket

Init repository:
$ restic -r gs:bucket:/[prefix] init
@restic restic deleted a comment from jwkohnen Aug 9, 2017
@fd0 fd0 merged commit 77bf170 into master Aug 9, 2017
fd0 added a commit that referenced this pull request Aug 9, 2017
Add backend for Google Cloud Storage (GCS)
@fd0 fd0 deleted the gcs-support branch August 9, 2017 19:31
@cafuego
Copy link

cafuego commented Jan 7, 2018

I flipped my repo URLs to the new gs backend recently and backup speed increased by a factor of 4! Thanks for doing this work @diptadas and merging it @fd0! 🧡

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants