1

希望我问这个听起来不会太愚蠢。我和妻子在家里经营一家小企业。我们想共享会计数据,但我经常在另一个地方。我们使用具有网络功能的 PC 版 Sage Peachtree Premium Accounting,因此数据文件可以存储在一个公共位置。是否可以使用 Google Cloud Storage 之类的工具共享此文件?

4

2 回答 2

2

Google Drive 无疑是更便宜的选择,因为它针对消费者的使用模式进行了优化。Google Cloud Storage 针对需要高度可用且具有强大全球一致性的复制存储的应用程序进行了优化。

以下是 Google Cloud Storage 尝试改进团队协作的几种方式:

  1. 资源由多人组成的项目团队拥有。
  2. 可以与组共享文件。
  3. 可以更改应用于新对象的默认 acl。

与团队合作

每个存储桶都归一个项目所有,默认情况下,您团队中的每个人都可以读取上传到这些存储桶的新对象。

您可以通过以下方式管理团队中的人员:

  • 转到https://code.google.com/apis/console
  • 单击侧边栏上的团队。
  • 添加您想与之协作的其他人的电子邮件地址。
  • 使用下拉列表为他们提供更多权限。
  • 使用 x 删除团队成员。

权限是同心的:

  • 具有can view访问权限的每个人都可以读取未指定 acl 的文件。
  • 每个拥有can edit访问权限的人都可以创建和删除存储桶以及上传新对象。
  • 拥有访问权限的每个人都is owner可以添加其他查看者、编辑者和所有者。

分享到 Google 群组

Google Cloud Storage 允许您与 Google 群组共享文件。当您将这些文件添加到组时,用户可以访问这些文件,而当您从组中删除它们时,用户将失去访问权限。

首先下载对象acl:

gsutil getacl gs://bucket/obj > acl.xml
vim acl.xml

<Entries/>现在在标签内添加以下 acl 条目:

  <Entry>
    <Scope type="GroupByEmail">
      <!-- Give everyone in the gs-discussion group READ access. -->
      <EmailAddress>gs-discussion@googlegroups.com</EmailAddress>
    </Scope>
    <Permission>READ</Permission>
  </Entry>

现在更新acl:

gsutil setacl acl.xml gs://bucket/obj

有关访问控制的更多信息,请参阅在线文档https://developers.google.com/storage/docs/accesscontrol#applyacls

您可以在 google.com/groups 创建一个 Google 群组

更改默认对象 acl

默认情况下,团队中的每个人都可以阅读您上传的对象。但是,您可以将其配置为或多或少允许。您可以将对象设为默认公开可读,或仅由所有者和 Google 群组查看。

更改默认对象 acl 类似于更改对象 acl。只需使用getdefaclandsetdefacl命令。

一些预定义的配置不需要编辑 xml 文件:

# Team members can view new objects.
gsutil setdefacl project-private gs://bucket
# Anonymous internet users can view new objects.
gsutil setdefacl public-read gs://bucket

否则,您可以编辑 acl xml:

gsutil getdefacl gs://bucket > def_acl.xml
vim def_acl.xml
# Add whichever UserByEmail, GroupByEmail, AllUsers, etc grants you want.
gsutil setdefacl def_acl.xml gs://bucket

新对象应用默认对象 acl:

gsutil cp foo gs://bucket  # This object will receive the def_acl.xml acls.

使用特定对象的预定义 acl 覆盖默认对象 acl 很容易:

# Ignore the default acl. Use public-read.
gsutil cp -a public-read foo gs://bucket

developer.google.com/storage/docs/accesscontrol#extension 上提供了预定义 acl 的完整列表

于 2012-11-08T19:28:40.467 回答
1

Google Cloud Storage is probably overkill for what you're talking about. Cloud Storage is something web developers use to deliver assets like images, videos, and documents to a large number of users around the world.

However something like Google Drive or Dropbox would probably work well for this. If you both have Gmail accounts then Google Drive is a natural choice. Both of these solutions have a service which runs on each PC and automatically syncs changed files in a specified folder to all other computers using that folder.

So if one of you makes changes to the file, it will show up in the other location automatically. However the real question is how your software will handle this. I'm not familiar with Peachtree Accounting but it probably isn't possible for you to both be making changes at the same time, unless the software is specifically designed for that use case.

If you can post a link or description for the "networking capabilities" (that is a rather vague term on its own) it may be possible to tell for sure.

于 2012-11-04T18:52:05.327 回答