質問

私は現在使用し、Googleの形状を入力できるよう情報の格納されているGoogle Docs表計算ソフトを起動します。破壊も修復もおもしろくない可能な自動バックアップのスプレッドシートを定期的に行っています。例えば、毎週金曜日のスプレッドシート上に輸出されることになるとして、CSVのいずれかにメールで送信で構成されているので保存されるパスワードで保護されたディレクトリはサーバー通信を行います。

り読書、そのアイデアがお待ちしております!

役に立ちましたか?

解決

Googleドキュメントには最適なツールの編集やコラボレーションの提出書類オンラインがGoogle Docs提供いたしませんの特徴を自動的にバックアップ、Dropboxを使用する保存と同時にGoogle Docsおいて解決す。

解決には cloudHQ (10$+/pm)サービスを提供する 実時間同期とGoogle DocsやDropbox.例えば、ユーザが編集の一部は、Google Docsのウェブ文書の文書は、自動的に変更されDropbox.ということは、 cloudHQ 自動的にコピーファイルをGoogleドキュメントをDropbox.

を提唱したいと思い、以下のリンク cloudHQクツアー. CloudHQ もあるのか。と cloudHQ Chromeブラウザ拡張できる同期複製したものにDropboxやBasecampアカウントをGoogle Docs-から直接Googleドキュメントインタフェース。拡張子はGoogle Chrome web Storeです。

いにあることを感謝すべきだと思一端または意見についてのデータの同期化とクラウドサービス

他のヒント

これは以下の解決策です:

  • Googleスプレッドシートのバックアップを自動的に作成する(毎日/毎週など)
  • Googleドライブの特定のフォルダ内のExcelファイル(XLSX)として
  • あなたのコンピュータに自動的に同期するように設定できる

ステップ1

Googleドライブ内のバックアップファイル用のフォルダを作成します(例えば、「ドライブ>ドキュメント>バックアップ」)。ブラウザでそれを開き、URLから「フォルダID 」をメモします。たとえば、次のURLのフォルダIDは1234abcdefgh_98765ijklmnopqrs_0XY

になります。

> https://drive.google.com/drive/ U / 0 /フォルダ/ 1234ABCDEFGH_98765IJKLMNOPQRS_0XY?THS= TRUE

ステップ2

自動的にバックアップしたいGoogleスプレッドシートを開きます。上部メニューから、「ツール」>「スクリプトエディタ」を選択します。開いている新しいウィンドウで、デフォルトのコードを下のコードで置き換え、次のようにします。

// function to backup the current Spreadsheet as an Excel file (XLSX) in a given folder
// -- requires "Advanced Drive Service" which must be enabled in "Resources" > "Advanced Google services..." > "Drive API" > toggle "ON"
function backupSheet() {
  // UPDATE THE FOLDER ID for e.g. "My Drive > Docs > Backups"
  var backupFolder = DriveApp.getFolderById("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
  var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  var spreadsheetId = spreadsheet.getId();
  var file = Drive.Files.get(spreadsheetId);
  var url = file.exportLinks[MimeType.MICROSOFT_EXCEL];
  var token = ScriptApp.getOAuthToken();
  var options = { headers: { Authorization: "Bearer " + token } };
  var response = UrlFetchApp.fetch(url, options);
  var doc = response.getBlob();
  var backupDate = Utilities.formatDate(new Date(), "GMT", "yyyy-MM-dd' 'HH-mm-ss");
  var backupName = spreadsheet.getName() + ".backup " + backupDate + ".xlsx";
  var tempFile = DriveApp.createFile(doc).setName(backupName);
  tempFile.makeCopy(backupName, backupFolder);
  tempFile.setTrashed(true);
}
.

スクリプトをテストしたい場合は、コードの上の「実行」アイコンをクリックしてください。これにより、スプレッドシートのバックアップExcelファイル、設定したバックアップフォルダに(前述のフォルダIDに基づいて)作成します。

ステップ3

スクリプトを保存します(トップメニューから、「ファイル」>「保存」を選択し、コード上の「トリガー」アイコンをクリックします(クロック形のアイコン)。開いた新しいウィンドウで、「 + add trigger 」をクリックします(右下隅)。自動バックアップの実行を計画することができる「バックアップシートのトリガーの追加」というオブレイが表示されます。たとえば、月曜日の毎週実行したい場合は、次の設定を構成する必要があります。

  • 実行する関数を選択します。バックアップシート
  • どの展開を実行するかを選択します。ヘッド
  • イベントソースを選択します。時間駆動
  • 時間ベースのトリガーの種類を選択します。週タイマー
  • 週の曜日を選択します。毎週月曜日

保存実行したときのトリガーを設定します。 Excelバックアップは、Googleドライブから目的のフォルダに自動的に作成されます。

ステップ4

最後に、バックアップと同期コンピュータのSync (まだ行っていない場合)、Googleドライブアカウントからバックアップフォルダを同期させるように設定します。 - 「Preferences」>「Google Drive」>「このコンピュータへのマイドライブ」を有効にし、バックアップフォルダがあることを確認します。同期されているフォルダの中に。

アプリはあなたのオフラインの喜びのためにあなたのGoogleスプレッドシートのExcelバックアップを自動的にダウンロードします!

Two solutions that don't involve a for-pay subscription: 1) write a script or short app (pick your language) that exports a Google Sheet using the Google Drive API as CSV. Why the Drive API? The Sheets API is for spreadsheet-oriented functionality, i.e., data formatting, column resize, creating charts, cell validation, etc., while the Drive API is for file-oriented functionality, i.e., import/export.

If you do Python, here's a complete example which you can run as a cron job on your server or if app-hosting on Google App Engine. If you don't, you can use it as pseudocode and pick any language supported by the Google APIs Client Libraries. Here's core piece of code from that example (assume the most current Sheet named 'inventory'):

FILENAME = 'inventory'
SRC_MIMETYPE = 'application/vnd.google-apps.spreadsheet'
DST_MIMETYPE = 'text/csv'

files = DRIVE.files().list(
    q='name="%s" and mimeType="%s"' % (FILENAME, SRC_MIMETYPE),
    orderBy='modifiedTime desc,name').execute().get('files', [])

if files:
    fn = '%s.csv' % os.path.splitext(files[0]['name'].replace(' ', '_'))[0]
    print('Exporting "%s" as "%s"... ' % (files[0]['name'], fn), end='')
    data = DRIVE.files().export(fileId=files[0]['id'], mimeType=DST_MIMETYPE).execute()
    if data:
        with open(fn, 'wb') as f:
            f.write(data)
        print('DONE')

If your Sheet is large, you may have to export it in chunks -- see this page on how to do that. You can also email the file contents to yourself with the Gmail API. If you're generally new to Google APIs, I have a (somewhat dated but) user-friendly intro video for you. (There are 2 videos after that maybe useful too.)

2) The other solution is for those who are "allergic" to using APIs, and that alternative is Google Apps Script, Javascript outside of the browser. Like Node, it runs server-side but on Google's servers. With Apps Script, you can use DriveApp or the advanced Drive service to access your Sheet, then use MailApp or GmailApp to email it to yourself, or use the UrlFetch service to send it to some server of your choosing. To run it at a normal interval, you'll need to create a script as a time-driven installable trigger. In either case, you don't need to host+execute your app yourself.

ps. The latest Drive API version is v3, but if you access Drive from Apps Script, it uses v2 (not deprecated yet).

Google docs is a free tool that allows users to automatically save and collaborate any data in real-time. It does not however have a built-in feature for secure google docs backup nor automatic real-time backup.

Google have stated officially in their terms of service that:

Google, and Google’s suppliers and distributors, will not be responsible for lost profits, revenues, or data, financial losses or indirect, special, consequential, exemplary, or punitive damages.

Their waving of liability is applicable not just for personal use but also business use:

If you are using our Services on behalf of a business, that business accepts these terms. It will hold harmless and indemnify Google and its affiliates… including any liability or expense arising from claims, losses, damages, suits, judgments, litigation costs and attorneys’ fees.

Today there are other options other than paying to sync to Dropbox for google docs backup automation. Your decision on how to automate your google docs backup depends on a few factors:

  1. How sensitive your data is, and whether it’s for personal or business use i.e- How liable you’ll need to be in case of data loss or a security breach.

  2. Whether you have the dev knowledge to code a script or app using any of the methods outlined by wescpy previously in full detail:

a) using the Google drive API that exports google sheets automatically b) using Python to run a cron job on your server to export a google sheet spreadsheet as CSV or c) write a non-API Javascript that runs outside your browser using the Google apps script

If you require full security and data protection, and opt for a no-pay subscription- automated google docs backup solution, suffice to say you need to be sure your code is reliable and provides the security/encryption your project requires.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top