G Suite的Google Takeout从Google Cloud Storage下载 [英] Google Takeout from G Suite Download from Google Cloud Storage

查看:79
本文介绍了G Suite的Google Takeout从Google Cloud Storage下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一家非营利组织的G Suite管理员,刚刚发现了数据导出"功能,这似乎就像一个个人帐户的外卖".

I am a G Suite admin for a nonprofit, and just discovered the Data Export feature, which seems to be like an individual account's Takeout.

导出文件已经准备好,现在可以从Google Cloud Platform Storage的存储桶中下载.但是,有很多文件夹,并且试图进出每个文件夹来下载每个文件夹中的许多.zip文件听起来像是要跟踪的头疼事.

The export files were prepared, and are now available to download from a bucket in Google Cloud Platform Storage. However, there are many, many folders and trying to go in and out of each one to download the many, many .zip files in each sounds like a major headache to track.

我在Mac上使用Transmit,它具有通过与Amazon S3的互操作性连接到Google Cloud Storage的能力.但是,当我连接时,我什么也看不到(因为我不使用Google Cloud Storage).我找不到连接到我们的导出"数据所在的特定存储桶的方法.建议?

I use Transmit on my Mac, and it has the ability to connect to Google Cloud Storage through the interoperability with Amazon S3. However, when I connect I see nothing (as I don't otherwise use Google Cloud Storage). I cannot find a way to connect to the particular bucket that our Takeout data is in. Suggestions?

推荐答案

G Suite客户外卖:使用终端进行批量下载

基于话剧表演者的深刻见解,以下是我在fedora系统上采取的确切步骤,以编程方式从存储桶中下载我的gsuite外卖产品:

G Suite Customer Takeout: Bulk Download using Terminal

Building on repertor's great insight, here are exact steps I took (on a fedora system) to programatically download my gsuite takeout from the bucket:

# wget https://storage.googleapis.com/pub/gsutil.tar.gz
# tar xvfz gsutil.tar.gz
# cd gsutil

将gsutil连接到G Suite帐户

要创建只读令牌,请使用以下命令:访问浏览器以获取API令牌,然后将API令牌粘贴回终端中.稍后,它会要求一个"project-id",显然可以是任何字符串.

Connect gsutil to G suite account

To create a read-only token, use the command below: visit the browser to get an API token, then paste the API token back into the terminal. Later it asks for a "project-id", which can be any string apparently.

# ./gsutil config -r

实际下载备份

转到 G Suite客户导出,点击访问归档"并找到存储区ID.就我而言,此ID的格式为 takeout-export-123456abcdef-123456abcedf

Actually download the backup

Go to G Suite Customer Takeout, click on "Access Archive" and find the bucket id. In my case, this ID has the form takeout-export-123456abcdef-123456abcedf

现在列出存储桶的内容,并使用rsync递归下载:

Now to list the contents of the bucket, and download it recursively with rsync:

# ./gsutil ls gs://takeout-export-123456abcdef-123456abcedf
# ./gsutil rsync -r takeout-export-123456abcdef-123456abcedf /tmp

这篇关于G Suite的Google Takeout从Google Cloud Storage下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆