{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/ja/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["admonition"]},"type":"markdown"},"seo":{"title":"Dropbox Export Integration","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"dropbox-export-integration","__idx":0},"children":["Dropbox Export Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["この記事では、Treasure Data からクエリ実行結果を直接 Dropbox アカウントにエクスポートする方法を説明します。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"前提条件","__idx":1},"children":["前提条件"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["toolbelt"]}," を含む Treasure Data の基礎知識"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dropbox アカウント"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["認可された Treasure アカウントへのアクセス権"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"treasure-コンソール-を使用して接続を作成する","__idx":2},"children":["Treasure コンソール を使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"新しい接続を作成する","__idx":3},"children":["新しい接続を作成する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["データ接続を設定する際、インテグレーションにアクセスするための認証情報を提供します。Treasure Data では、認証を設定してからソース情報を指定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Treasure コンソール"]}," を開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations Hub > Catalog"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Catalog 画面の右端にある検索アイコンをクリックし、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Dropbox"]}," と入力します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dropbox コネクタにカーソルを合わせ、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Authentication"]}," を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/dropbox.239403f5a92c28c264a9acf686e7d91192ec8c96c62779dc5d8bf5438f5e9f54.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["以下のダイアログが開きます。Treasure Data Dropbox へのアクセスには OAuth2 認証が必要です。この認証では、ユーザーが自分の Treasure アカウントをそれぞれの Dropbox アカウントに手動で接続する必要があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["認証するには、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Click here"]}," を選択して新しいアカウントに接続します。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-213657.b8404fd5fe4d0c65ea8c6425849f35b5978298314bf5bb60a90400e93a3ff1e1.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ポップアップウィンドウで Dropbox アカウントにログインし、Treasure Data アプリへのアクセスを許可します（これは初回のみ必要です）。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-214757.e67a6fc94960ec91ad26642433d7880049958f92ce73f2298c63ad3b5cf81f5f.479e66d4.png","alt":""},"children":[]}," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-214837.d60d48932086bda2b8b6139bc1753fda339206af371efbbff1433740c198ab11.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Treasure コンソール にリダイレクトされます。最初のステップ（新しい接続を作成する）を繰り返し、新しい OAuth 接続を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-215330.7ba5f6cee1758c02b724c1a71857d23dba86b48e78c74d7836f08a75a8666ed5.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":8},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["新しい Dropbox 接続に名前を付けます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Done"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-215432.ee86dd762bc60a39ec6e1f5f306491031dca97c55377d98abd95accd0fe75a52.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"データ接続への出力結果を設定する","__idx":4},"children":["データ接続への出力結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["このステップでは、クエリを作成または再利用します。クエリ内でデータ接続を設定します。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Data Workbench > Queries に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["データのエクスポートに使用する予定のクエリを選択するか、必要に応じて新しいクエリを作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Results"]}," を選択して、結果のエクスポート先を指定します。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"結果のエクスポート先を指定する","__idx":5},"children":["結果のエクスポート先を指定する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export"]}," ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Results"]}," を選択すると、以下のダイアログが開きます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["検索ボックスに接続名を入力してフィルタリングし、Dropbox 接続を選択します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200310-221159.d599bcc9e67049bcd59996859eb0602baf0726caff9cd83f308bd5cbba27457f.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":3},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["すべての情報を編集します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-06-26-at-09.55.01.aede3dd5631b373a82ffdf602c4aacb5641486816b1790feeb9aa1e4cc82a03b.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/screenshot-2025-06-26-at-09.55.14.21d113c90f89229d49fbe24e48657fb87e41a049c3207564221c38086313eb7e.479e66d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["パラメータ"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Path Root Modes"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["パスルートヘッダーモード。利用可能なオプション: home、root、namespace、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.dropbox.com/developers/reference/path-root-header-modes"},"children":["path-root-header-modes"]}," を参照"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Namespace Id"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["namespace パスルートモードを選択した場合に表示され、必須となります"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Folder Path"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dropbox 内のフォルダのディレクトリ"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["File Name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["拡張子を除いた宛先ファイル名"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Format"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["ファイル拡張子"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Encoders"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- None - エンコーダは適用されません（デフォルト）- GZ - ファイルはアップロード前に gzip を使用して圧縮されます - BZIP2 - ファイルはアップロード前に bzip2 を使用して圧縮されます - PGP Encryption  - ファイルはアップロード前に公開鍵を使用して暗号化されます"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Public Key"]},"  Encoder が PGP encryption の場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ファイルをアップロード前に暗号化するために使用される公開鍵"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Key Identifier"]},"  Encoder が PGP encryption の場合は必須"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ファイルを保護するために使用される暗号化サブキーの Key ID を指定します。マスターキーは暗号化プロセスから除外されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Amor"]},"  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ASCII armor を使用するかどうか"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Compression Type"]},"  オプション"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["- ファイルの圧縮に使用される圧縮アルゴリズムを定義します。ファイルは SFTP サーバーにアップロードするために暗号化する前に圧縮されます。- ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["注意: ファイルを暗号化してアップロードする前に必ず圧縮してください。復号化すると、ファイルは .gz や .bz2 などの圧縮形式に戻ります。"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Header line"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["エクスポートされたデータにヘッダー行として列名がある場合に選択します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Null String"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["NULL 値を表すために使用する値。利用可能なオプション:  - Default: ファイル形式が CSV の場合は空文字列（",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["''"]},"）が NULL 値を表すために使用され、TSV 形式の場合は \\N が使用されます。 - Empty string - \\N NULL - null"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["End-of-line character"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["行末の文字。利用可能なオプションは CRLF、LF、CR です"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Quote Policy"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["利用可能なオプション:  - ALL: すべての値が二重引用符（\"\"）で囲まれる場合に選択します。 - MINIMAL: 埋め込まれた引用符（\"）を含む値が連続する引用符のペア（\"\"）で表示される場合に選択します。MINIMAL クォートポリシーは CSV に適用されます。 - NONE: 埋め込まれた引用符に対するエスケープが適用されない場合に選択します。デフォルトでは、NONE が TSV ファイル形式に適用されます。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Max Retries"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Dropbox サーバーエラーまたはネットワークエラーによりエラーが発生した場合、アップロードを中止する前に試行される再試行回数。"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリを実行する","__idx":6},"children":["クエリを実行する"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]}," を選択してクエリに名前を付けて保存して実行するか、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Run"]}," を選択してクエリを実行します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image-20200311-172923.5a6d761fa993ff554e701d82ff29a5aed2a999ad8bf495d87b22451376cc076d.479e66d4.png","alt":""},"children":[]}," ","2. クエリが正常に実行されると、クエリ結果は指定されたコンテナの宛先に自動的にインポートされます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"クエリの例","__idx":7},"children":["クエリの例"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"SQL","header":{"controls":{"copy":{}}},"source":"SELECT email, first_name, last_name, region, age, gender, website FROM (\n VALUES ('kate1@gmail.com', 'Kate', 'Tiny', 'Asia', '41 and above', 'female', 'google.com'),\n ('ronan@gmail.com', 'R', 'P', 'Americas', '21-30', 'male', 'google.com'),\n ('michelle@gmail.com', 'M', 'C', 'EMEA', '31-40', 'male', 'facebook.com')\n) tbl (email, first_name, last_name, region, age, gender, website);\n","lang":"SQL"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オプション-query-export-ジョブをスケジュールする","__idx":8},"children":["(オプション) Query Export ジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scheduled Jobs と Result Export を使用して、指定したターゲット宛先に出力結果を定期的に書き込むことができます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data のスケジューラー機能は、高可用性を実現するために定期的なクエリ実行をサポートしています。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["2 つの仕様が競合するスケジュール仕様を提供する場合、より頻繁に実行するよう要求する仕様が優先され、もう一方のスケジュール仕様は無視されます。"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["例えば、cron スケジュールが ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * 1'"]}," の場合、「月の日」の仕様と「週の曜日」が矛盾します。前者の仕様は毎月 1 日の午前 0 時 (00:00) に実行することを要求し、後者の仕様は毎週月曜日の午前 0 時 (00:00) に実行することを要求するためです。後者の仕様が優先されます。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"treasure-コンソール-を使用してジョブをスケジュールする","__idx":9},"children":["Treasure コンソール を使用してジョブをスケジュールする"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench > Queries"]}," に移動します"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["新しいクエリを作成するか、既存のクエリを選択します。"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," の横にある None を選択します。"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png","alt":""},"children":[]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["ドロップダウンで、次のスケジュールオプションのいずれかを選択します:"," ",{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"ドロップダウン値"},"children":["ドロップダウン値"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"説明"},"children":["説明"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Custom cron..."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#custom-cron-details"},"children":["Custom cron... の詳細"]},"を参照してください。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@daily (midnight)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["指定されたタイムゾーンで 1 日 1 回午前 0 時 (00:00 am) に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["@hourly (:00)"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎時 00 分に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["None"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールなし。"]}]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"custom-cron-の詳細","__idx":10},"children":["Custom cron... の詳細"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Cron 値"]}]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":""},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["説明"]}]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 * * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 時間に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 * * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["1 日 1 回午前 0 時に実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1 * *"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時に 1 回実行します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"\""]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["スケジュールされた実行時刻のないジョブを作成します。"]}]}]}]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":" *    *    *    *    *\n -    -    -    -    -\n |    |    |    |    |\n |    |    |    |    +----- day of week (0 - 6) (Sunday=0)\n |    |    |    +---------- month (1 - 12)\n |    |    +--------------- day of month (1 - 31)\n |    +-------------------- hour (0 - 23)\n +------------------------- min (0 - 59)\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["次の名前付きエントリを使用できます:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Day of Week: sun, mon, tue, wed, thu, fri, sat."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["各フィールド間には単一のスペースが必要です。各フィールドの値は、次のもので構成できます:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"fixed-table"},"children":[{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"35%","data-label":"フィールド値"},"children":["フィールド値 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"20%","data-label":"例"},"children":["例 "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"45%","data-label":"例の説明"},"children":["例の説明 "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["各フィールドに対して上記で表示された制限内の単一の値。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["フィールドに基づく制限がないことを示すワイルドカード"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]},"。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["範囲 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2-5'"]}," ","フィールドの許可される値の範囲を示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 1-10 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日から 10 日までの午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["カンマ区切りの値のリスト ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,3,4,5'"]}," ","フィールドの許可される値のリストを示します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["0 0 1,11,21 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、11 日、21 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["周期性インジケータ ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*/5'"]}," ","フィールドの有効な値の範囲に基づいて、"," ","スケジュールが実行を許可される頻度を表現します。"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'30 */2 1 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 1 日、00:30 から 2 時間ごとに実行するようにスケジュールを設定します。"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 */5 * *'"]}," は、毎月 5 日から 5 日ごとに午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'*'"]}," ","ワイルドカードを除く上記の"," ","いずれかのカンマ区切りリストもサポートされています"," ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'2,*/5,8-10'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["'0 0 5,*/10,25 * *'"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["毎月 5 日、10 日、20 日、25 日の午前 0 時 (00:00) に実行するようにスケジュールを設定します。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["(オプション) Delay execution を有効にすることで、クエリの開始時刻を遅延させることができます。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"audience-studio-で-segment-をアクティベートする","__idx":11},"children":["Audience Studio で Segment をアクティベートする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Audience Studio で activation を作成することで、segment データをターゲットプラットフォームに送信することもできます。"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Audience Studio"]}," に移動します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["parent segment を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ターゲット segment を開き、右クリックして、",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create Activation"]}," を選択します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Details"]}," パネルで、Activation 名を入力し、前述の Configuration Parameters のセクションに従って activation を設定します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Output Mapping"]}," パネルで activation 出力をカスタマイズします。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Attribute Columns",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Export All Columns"]}," を選択すると、変更を加えずにすべての列をエクスポートできます。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択して、エクスポート用の特定の列を追加します。Output Column Name には、Source 列名と同じ名前があらかじめ入力されます。Output Column Name を更新できます。",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add Columns"]}," を選択し続けて、activation 出力用の新しい列を追加します。"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String Builder",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["+ Add string"]}," を選択して、エクスポート用の文字列を作成します。次の値から選択します:",{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["String: 任意の値を選択します。テキストを使用してカスタム値を作成します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Timestamp: エクスポートの日時。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Id: segment ID 番号。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Segment Name: segment 名。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Audience Id: parent segment 番号。"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Schedule"]}," を設定します。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["スケジュールを定義する値を選択し、オプションでメール通知を含めます。"]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]}," を選択します。"]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["batch journey の activation を作成する必要がある場合は、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation"},"children":["Creating a Batch Journey Activation"]}," を参照してください。"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"オプション-workflow-でエクスポート結果を設定する","__idx":12},"children":["オプション: Workflow でエクスポート結果を設定する"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure ワークフロー 内で、このデータコネクタを使用してデータを出力するように指定できます。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"yaml","header":{"controls":{"copy":{}}},"source":"timezone: UTC\n\n_export:\n  td:\n database: sample_datasets\n\n+td-result:\n  td>: queries/sample.sql\n  result_connection: your_connection_name\n  result_settings:\n   access_token: ###\n   path_root_mode: namespace | home | root (default: home)\n   namespace_id: 1234567\n   file_name: file01\n   folder_path: /abc\n   replace_existing: false\n   format: csv\n   compression: gz\n   header_line: true\n   null_string: default\n   newline: CRLF\n   quote_policy: null\n   retry_count: 5\n   retry_initial_wait_millis: 1000\n   max_retry_wait_millis: 30000\n","lang":"yaml"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Workflow でデータコネクタを使用してデータをエクスポートする方法の詳細については、",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/customer-data-platform/data-workbench/workflows/exporting-data-with-parameters"},"children":["こちら"]},"を選択してください。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"cli-を使用して接続を作成する","__idx":13},"children":["CLI を使用して接続を作成する"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"td-コマンドをインストールする","__idx":14},"children":["'td' コマンドをインストールする"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://toolbelt.treasuredata.com/"},"children":["Treasure Data Toolbelt"]}," をインストールします。"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"オンデマンドジョブの場合","__idx":15},"children":["オンデマンドジョブの場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td query"]}," コマンドの ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["r/ -result"]}," オプションを使用して、Dropbox 結果出力先を追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td query -d sample_datasets -w 'SELECT host, path FROM www_access' --type presto -r '{\"type\":\"dropbox\", \"access_token\":\"your_token\",\"folder_path\":\"/abc\",\"file_name\":\"test_file\",\"replace_existing\":null,\"format\":\"csv\",\"compression\":\"gz\",\"header_line\":true,\"null_string\":\"default\",\"newline\":\"CRLF\",\"quote_policy\":null,\"retry_count\":\"5\",\"retry_initial_wait_millis\":\"1000\",\"max_retry_wait_millis\":\"300000\"}'\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"スケジュールジョブの場合","__idx":16},"children":["スケジュールジョブの場合"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["td sched:create"]}," コマンドの ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["r/ -result"]}," オプションを使用して、Dropbox 結果出力先を追加します。"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"td sched:create every_6_mins \"*/6 * * * *\" -d test_db -w 'SELECT id, via FROM table1' --type presto -r '{\"type\":\"dropbox\", \"access_token\":\"your_token\",\"folder_path\":\"/abc\",\"file_name\":\"test_file\",\"replace_existing\":null,\"format\":\"csv\",\"compression\":\"gz\",\"header_line\":true,\"null_string\":\"default\",\"newline\":\"CRLF\",\"quote_policy\":null,\"retry_count\":\"5\",\"retry_initial_wait_millis\":\"1000\",\"max_retry_wait_millis\":\"300000\"}'\n"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"付録","__idx":17},"children":["付録"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"dropbox-へのエクスポートに関する-faq","__idx":18},"children":["Dropbox へのエクスポートに関する FAQ"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Q: Dropbox のファイルサイズ制限は？"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Dropbox にアップロードされるすべてのファイルは、ストレージ容量よりも小さい必要があります。たとえば、アカウントのストレージクォータが 2 GB の場合、1 つの 2 GB ファイルまたは合計 2 GB になる多数のファイルをアップロードできます。ストレージクォータを超えている場合、Dropbox は同期を停止します。"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["アップロードされるファイルは 350GB 以下である必要があります。"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Q: Root と Home の Namespace を識別する方法"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["ユーザーの namespace 上のファイルにアクセスするには、まず API から namespace ID を取得する必要があります。これは、エンドポイント ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account"},"children":["/users/get_current_account"]}," で行われます。"]}]}]},"headings":[{"value":"Dropbox Export Integration","id":"dropbox-export-integration","depth":1},{"value":"前提条件","id":"前提条件","depth":1},{"value":"Treasure コンソール を使用して接続を作成する","id":"treasure-コンソール-を使用して接続を作成する","depth":2},{"value":"新しい接続を作成する","id":"新しい接続を作成する","depth":3},{"value":"データ接続への出力結果を設定する","id":"データ接続への出力結果を設定する","depth":3},{"value":"結果のエクスポート先を指定する","id":"結果のエクスポート先を指定する","depth":3},{"value":"クエリを実行する","id":"クエリを実行する","depth":3},{"value":"クエリの例","id":"クエリの例","depth":3},{"value":"(オプション) Query Export ジョブをスケジュールする","id":"オプション-query-export-ジョブをスケジュールする","depth":3},{"value":"Treasure コンソール を使用してジョブをスケジュールする","id":"treasure-コンソール-を使用してジョブをスケジュールする","depth":4},{"value":"Custom cron... の詳細","id":"custom-cron-の詳細","depth":4},{"value":"Audience Studio で Segment をアクティベートする","id":"audience-studio-で-segment-をアクティベートする","depth":2},{"value":"オプション: Workflow でエクスポート結果を設定する","id":"オプション-workflow-でエクスポート結果を設定する","depth":2},{"value":"CLI を使用して接続を作成する","id":"cli-を使用して接続を作成する","depth":2},{"value":"'td' コマンドをインストールする","id":"td-コマンドをインストールする","depth":3},{"value":"オンデマンドジョブの場合","id":"オンデマンドジョブの場合","depth":3},{"value":"スケジュールジョブの場合","id":"スケジュールジョブの場合","depth":3},{"value":"付録","id":"付録","depth":2},{"value":"Dropbox へのエクスポートに関する FAQ","id":"dropbox-へのエクスポートに関する-faq","depth":3}],"frontmatter":{"seo":{"title":"Dropbox Export Integration"}},"lastModified":"2026-06-01T09:47:58.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/ja/int/dropbox-export-integration","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}