如何安装s3sync

发布于 2024-09-09 01:21:20 字数 496 浏览 6 评论 0原文

这似乎是一个出色的脚本,但缺少我似乎无法弄清楚的安装关键部分。也许有人可以帮助新手。

到目前为止我所做的:

  1. 安装了 s3sync 软件包。
  2. 下载了 s3 证书
  3. 下载了 s3 ssl 包
  4. 并使用 sh ssh.certs.shar 运行它
  5. 编辑了 s3conf.yml 文件以获得正确的 AWS ID 和密码以及证书文件的路径

当我运行 s3cmd.rb 时出现错误“您没有设置环境变量;请参阅 README.txt”

我同意这一点,但没有写任何有关我指定目的地或目标的信息。

猜测:

- 证书文件必须位于它不在的特定位置,或者位于不正确的证书文件中

- s3conf.yml 可能没有写入正确的信息。

更新: 卸载了所有东西,并将其安装为 gem。确保 s3config.yml 仍在 /etc/s3conf/ 中。但还是什么都没有。

This seems like an excellent script but lacks a key part to its installation I can't seem to figure out. Maybe someone out there can help a newb.

What I've done so far :

  1. Installed the s3sync package.
  2. Downloaded the s3 certificate
  3. Downloaded the s3 ssl package
  4. ran it with sh ssh.certs.shar
  5. Edited the s3conf.yml file to have the correct AWS id and password and a path to the cert file

When I run the s3cmd.rb I get the error "You didn't set up your environment variables; see README.txt"

To which I agree, there is no information written regarding where I specify destination or target.

Guesses :

-The cert file has to be in a specific place to which it isn't, or its in the incorrect cert file

-the s3conf.yml may not have the correct information written in it.

UPDATE:
Uninstalled everything, and installed it as a gem. Made sure the s3config.yml is still in /etc/s3conf/ . Still nothing though.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谁与争疯 2024-09-16 01:21:20

这里有一些 b/s,但我进入了 s3config.rb

发现了这一行:

confpath = ["#{ENV['S3CONF']}", "#{ENV['HOME']}/.s3conf", "/etc/s3conf"]

并将其撕成这样:

confpath = ["/etc/s3conf"]

完成,问题解决了。

Some b/s here but I went into the s3config.rb

Found this line :

confpath = ["#{ENV['S3CONF']}", "#{ENV['HOME']}/.s3conf", "/etc/s3conf"]

and ripped it apart to this :

confpath = ["/etc/s3conf"]

Done, problem solved.

梦魇绽荼蘼 2024-09-16 01:21:20

是的。未找到环境变量。这让我困扰了一段时间。这是因为您在 confpath 代码的第一行 ["#{ENV['S3CONF']}", ... 中设置的位置实际上并不是位置.yaml 文件中包含的变量。

正如 Trip 所说,将该值硬设置为包含 .yaml 文件的目录为我解决了这个问题。

您实际上可以使用“export”来设置值,但实际上,这要容易得多!

Yes. The environment variables are not being found. This troubled me for a while. It is because the locations you are setting in that initial line of confpath code ["#{ENV['S3CONF']}", ... is not actually the location of the variables contained in the .yaml file.

As Trip says, hard setting that value to the dir containing the .yaml file solved this problem for me.

You could actually set the values using 'export' but really, this is much easier!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文