惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
Y
Y Combinator Blog
博客园 - 【当耐特】
V
Visual Studio Blog
GbyAI
GbyAI
V
V2EX
P
Proofpoint News Feed
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security Blog
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
A
About on SuperTechFans
The Cloudflare Blog
阮一峰的网络日志
阮一峰的网络日志
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
量子位
MongoDB | Blog
MongoDB | Blog
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件

Backups done right! on restic

restic · Restic 0.19.1 Released restic · Restic 0.19.0 Released restic · Restic 0.18.1 Released restic · REST-server 0.14.0 released restic · Restic 0.18.0 Released restic · Restic 0.17.3 Released restic · Restic 0.17.2 Released restic · Restic 0.17.1 Released restic · Restic 0.17.0 Released restic · REST-server 0.13.0 released restic · Restic 0.16.5 Released restic · Restic 0.16.4 Released restic · Restic 0.16.3 Released restic · Restic 0.16.2 Released restic · Restic 0.16.1 Released restic · Restic 0.16.0 Released restic · REST-server 0.12.1 released restic · REST-server 0.12.0 released restic · Restic 0.15.2 released restic · Restic 0.15.1 Released restic · Restic 0.15.0 Released restic · Restic 0.14.0 Released restic · Restic 0.13.1 Released restic · Restic 0.13.0 Released restic · Rest Server 0.11.0 released restic · Restic 0.12.1 released restic · Restic 0.12.0 released restic · Restic 0.11.0 released restic · restic 0.10.0 released restic · Rest Server 0.10.0 Released
restic · Upcoming changes for the S3 backend
2017-11-25 · via Backups done right! on restic

25 Nov 2017

TL;DR: If you’re using the s3 backend and cannot access your repo any more, append the path /restic to the repository location.

We’ve just merged Pull Request #1437 which resolves an issue with the S3 backend reported in #1292. When the next restic version is released (or you’re using the master branch directly), this may require modifying the repository location you’re passing to restic.

In order to access a repository stored on S3, restic requires the following information:

  • The endpoint address: For Amazon S3, it’s s3.amazonaws.com, for a custom hosted Minio server it may be https://minio.example.com.
  • The bucket name (e.g. backup-servers)
  • The path within the bucket (e.g. /repo-server1)

The endpoint address and bucket name are required for operation, but the path is optional. When the path is not set or empty, restic used to use the default path /restic within the bucket. This has now changed: When the path is not set or empty, the repository is put at the root of the bucket, so the path is /.

This change was made so that it is possible to have the repository directly in the root of the bucket. The default path /restic within the bucket only existed for historical reasons and was never properly documented.

So, if you did not specify a path within the bucket, you’ll now get an error that the repo cannot be found:

$ restic -r s3:s3.amazonaws.com/backup-servers snapshots
unable to open config file: Stat: The specified key does not exist.
Is there a repository at the following location?
s3:s3.amazonaws.com/backup-servers

Then you’ll need to add the path /restic now in order to access an existing repo, like this:

$ restic -r s3:s3.amazonaws.com/backup-servers/restic snapshots

As always, if you have feedback for us, please use the forum embedded below or (if you experience a bug) create a new issue on GitHub. Thanks!